Last active
July 26, 2019 15:53
-
-
Save alexalannunes/51fc4cd5fe603222221b42483598b9c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".summernote").summernote({ | |
height: 300, // set editor height | |
minHeight: null, // set minimum height of editor | |
maxHeight: null, // set maximum height of editor | |
focus: true, // set focus to editable area after initializing summernote | |
codemirror: { | |
// codemirror options | |
theme: "monokai" | |
}, | |
toolbar: [ | |
["paragraphstyle", ["style", "ol", "ul", "paragraph", "height"]], | |
["fontstyle", ["fontsize", "fontname", "color", "backcolor"]], | |
["insert", ["emoji", "picture", "link", "video", "table", "hr"]], | |
["style", ["bold", "italic", "underline", "clear"]], | |
["height", ["height"]], | |
["misc", ["undo", "redo", "fullscreen", "codeview", "help"]] | |
] | |
/** @doc https://summernote.org/deep-dive/ */ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment