- md5
- 201efd9d736dd92a7f1c3d3254ac0279
- sha1
- d155af293cb211930a2f7e95d7dca1bead3a1bf0
- sha256
- 50758943e7c9f5385c13c98ed3c3c3e95eaa30bab8420b2c23266fe56777eca7
window.tinymce.PluginManager.add("highlightPlus",((e,o)=>{const t=()=>{e.focus(),e.selection.collapse(!0),e.options.register("codemirror",{processor:"object",default:{codemirrorWidth:800,codemirrorHeight:550,fullscreen:!1,indentOnInit:!0,config:{mode:"htmlmixed",theme:"default",lineNumbers:!0,lineWrapping:!0,indentUnit:2,tabSize:2,indentWithTabs:!0,matchBrackets:!0,saveCursorPosition:!1,styleActiveLine:!0}}});const t=e.options.get("codemirror");t.config.saveCursorPosition&&e.selection.setContent('<span style="display: none;" class="CmCaReT">�</span>');const i={title:"Source code",url:`${o}/source.html`,width:t.width,height:t.height,resizable:!0,maximizable:!0,fullScreen:t.fullscreen,saveCursorPosition:!1,buttons:[{type:"custom",text:"Ok",name:"codemirrorOk",primary:!0},{type:"cancel",text:"Cancel",name:"codemirrorCancel"}],onAction:(o,t)=>{if("codemirrorOk"===t.name){document.querySelectorAll(".tox-dialog__body-iframe iframe")[0].contentWindow.tinymceHighlighterSubmit(),e.undoManager.add(),n.close()}}},n=e.windowManager.openUrl(i);t.fullscreen&&n.fullscreen(!0)};e.ui.registry.addButton("code",{icon:"sourcecode",title:"Source code+",tooltip:"Source code+",onAction:t}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code+",onAction:t,context:"tools"}),e.addShortcut("Alt+U","Opens the code editor",t)}));
The same content is in 2 releases, Joomla 5.0.0-alpha2 to 5.0.0-alpha3. See them all, or every version of this file.