Paste this in any of your Editor init: Magic Universal or Precise Individual
I hope this is the answer you were seeking
Below Code for Rich Text. Note, you can load only the plugins you need.
//Rich Text
tinymce.init({
selector: "[[+ID]]",
height: 500,
skin_url: "[[+SKIN]]",
file_browser_callback: autoFileBrowser,
elFinderBrowserSettings: {
url: tinymcewrapperPluginSrc+"qa-elfinder.php?rememberLastDir=1&defaultView=1",
title: "Media Browser"
},
plugins: [
'q2aFluidity',
'twPreCodeManager modxMagicHoverLink twAceEditor', // this can be used to replace 'codesample link code',
'advlist autolink lists image charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars fullscreen',
'insertdatetime media nonbreaking save table contextmenu directionality',
'emoticons template paste textcolor colorpicker textpattern imagetools'
],
toolbar1: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
toolbar2: 'print preview media | forecolor backcolor emoticons twPreCodeManager modxMagicHoverLink twAceEditor',
image_advtab: true,
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
]
});
Below Code is for Markdown: note that most RTE plugins are useless in MD mode
//Markdown
tinymce.init({
selector: "[[+ID]]",
hidden_input: true,
elFinderBrowserSettings: {
url: tinymcewrapperPluginSrc+"qa-elfinder.php?rememberLastDir=1&defaultView=l",
title: "Media Browser"
},
skin_url: "[[+SKIN]]",
forced_root_block : "",
force_br_newlines : true,
force_p_newlines : false,
file_browser_callback: autoFileBrowser,
browser_spellcheck: true,
gecko_spellcheck: true,
valid_elements: "br",
paste_as_text: true,
plugins: [
'twShowdown q2aFluidity twExoticMarkdownEditor twPreCodeManager modxMagicHoverLink autoresize',
'q2aFluidity twPreCodeManager modxMagicHoverLink',
'searchreplace wordcount fullscreen',
'insertdatetime media save contextmenu directionality',
'template paste'
],
autoresize_bottom_margin: 0,
autoresize_min_height: 100,
// autoresize_max_height: 300,
toolbar1: "ltr rtl | newdocument | boldMD italicMD | blockquoteMD | numlistMD bullistMD | link | twPreCodeManager | imageMD | tableMD | searchreplace | undo redo | charmap | preview",
content_style:"body{font-size:15px!important;}",
menubar: false, //quite useless in Markdown mode
statusbar: true,
contextmenu: "preview link twPreCodeManager boldMD italicMD linkMD imageMD blockquoteMD codeMD numlistMD bullistMD tableMD undo redo searchreplace"
});