Skip to content

Instantly share code, notes, and snippets.

@eldhosejoys
Created August 13, 2019 07:33
Show Gist options
  • Save eldhosejoys/4a974bcdb4b8d42c9dc352cfd0d4860d to your computer and use it in GitHub Desktop.
Save eldhosejoys/4a974bcdb4b8d42c9dc352cfd0d4860d to your computer and use it in GitHub Desktop.
jodit editor setup
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jodit/3.2.54/jodit.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/jodit/3.2.54/jodit.min.js"></script>
<script>
var editor = new Jodit("#textarea", {
"autofocus": true,
"iframe": true,
"textIcons": true,
"toolbarButtonSize": "small",
"saveModeInStorage": true,
"saveHeightInStorage": true,
"spellcheck": false,
"defaultMode": "2",
"defaultActionOnPaste": "insert_only_text",
"toolbarAdaptive": false,
"toolbarSticky": false,
"showCharsCounter": false,
"showWordsCounter": false,
"showXPathInStatusbar": false,
"askBeforePasteHTML": false,
"askBeforePasteFromWord": false,
"toolbarStickyOffset": 0,
"buttons": "source,fullsize",
"buttonsMD": "|,brush,paragraph,|,align,|,undo,redo,|,eraser,dots"
});
</script>
<textarea id="textarea"></textarea>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment