Skip to content

Commit 6677777

Browse files
committed
Add codable.toggle
1 parent f6e0888 commit 6677777

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

01-deep-dive.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,13 @@ if ($('#summernote').summernote('isEmpty')) {
304304
}
305305
{% endhighlight %}
306306

307+
### codeview
308+
You can toggle editable/codable view by API.
309+
310+
{% highlight javascript %}
311+
$('#summernote').summernote('codeview.toggle');
312+
{% endhighlight %}
313+
307314
### reset
308315
Clear the editor content and remove all stored history.
309316

0 commit comments

Comments
 (0)