/twPreCodeManager

An ingenious way to use TinyMCE to do the infamous thing called, HTML entitizing- supports Markdown code block

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

twPreCodeManager

An ingenious way to use TinyMCE to do the infamous thing called, HTML entitizing- supports Markdown code block

#Usage

tinymce.init({
  external_plugins: {
    twPreCodeManager: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twPreCodeManager.js",
    twExoticMarkdownEditor: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/twExoticMarkdownEditor.js", //optional
  },
  twPreCodeManagerSettings: {
    protectMODXsquareBrackets: true, // default is false
    protectMODXsquareBracketsXter: "*", // default xter to place in between open square brackets [[ = [*[
    contentEditable: true, //default is false
    managerPREcss: false, //default is true
    managerForceCODEtag: false, //default is true
    managerWidth: 400, //default is calculated to be responsive
    managerHeight: 400 //default is calculated to be responsive
  },
  toolbar: "twPreCodeManager",
  contextmenu: "twPreCodeManager"
});