Last active
November 8, 2017 16:40
-
-
Save tieutantan/5e3c67275d109c5921d3830305c5d8a1 to your computer and use it in GitHub Desktop.
Standard config TinyMCE for me
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.7.1/tinymce.min.js"></script> | |
<script> | |
tinymce.init({ | |
selector: "textarea#description", | |
height: 250, | |
plugins: [ | |
"fullscreen advlist autolink autosave link image lists charmap print preview hr anchor pagebreak", | |
"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", | |
"table contextmenu directionality emoticons template textcolor paste textcolor colorpicker textpattern" | |
], | |
toolbar1: "newdocument bold underline alignleft aligncenter bullist numlist blockquote link unlink image media", | |
toolbar2: "undo redo removeformat preview forecolor backcolor fontselect fontsizeselect", | |
menubar: true, | |
toolbar_items_size: 'small', | |
forced_root_block: false, | |
force_br_newlines: true, | |
force_p_newlines: false, | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment