User tests: Successful: Unsuccessful:
Pull Request for Issue #19719 .
TinyMCE options are included in page HTML as inline JSON. This PR cleans up the script by building the script correctly making the resulting HTML smaller.
The history behind this mess:
When I added the xtd-button to tinymce, the editor was using an inline script for initialisation. Later on @Fedik did some great work for the customisation part and the inline script was converted to static file. So when this code was merged the tabs and returns was kept intensionally to output a prettified output. What we never did was to convert this code to be uglified as now it's passed in the JSON string (which by the way is also totally wrong).
Apply patch and check if tiny works correctly
No
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Labels |
Added:
?
|
Before PR: 13,125 characters from <script>...</script>
After PR: 27,301 characters from <script>...</script>
I assume it should be less after PR.
Please see output.
Before PR:
<script type="application/json" class="joomla-script-options new">{"csrf.token":"3b291fd79ac7300fda0a7e1108c0ed4c","system.paths":{"root":"\/joomla-cms-staging","base":"\/joomla-cms-staging\/administrator"},"joomla.jtext":{"JLIB_FORM_FIELD_INVALID":"Invalid field: ","PLG_TINY_ERR_UNSUPPORTEDBROWSER":"Drag and drop image upload is not available for your browser. Please consider using a fully HTML5 compatible browser.","JGLOBAL_KEEP_TYPING":"Keep typing ...","JGLOBAL_LOOKING_FOR":"Looking for","ERROR":"Error","WARNING":"Warning","NOTICE":"Notice","MESSAGE":"Message","JLIB_JS_AJAX_ERROR_CONNECTION_ABORT":"A connection abort has occurred while fetching the JSON data.","JLIB_JS_AJAX_ERROR_NO_CONTENT":"No content was returned.","JLIB_JS_AJAX_ERROR_OTHER":"An error has occurred while fetching the JSON data: HTTP %s status code.","JLIB_JS_AJAX_ERROR_PARSE":"A parse error has occurred while processing the following JSON data:<br\/><code style=\"color:inherit;white-space:pre-wrap;padding:0;margin:0;border:0;background:inherit;\">%s<\/code>","JLIB_JS_AJAX_ERROR_TIMEOUT":"A timeout has occurred while fetching the JSON data.","JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST":"Please first make a selection from the list."},"system.keepalive":{"interval":840000,"uri":"\/joomla-cms-staging\/administrator\/index.php?option=com_ajax&format=json"},"xtd-pagebreak":{"editor":"jform_articletext"},"xtd-readmore":{"editor":"Joomla.editors.instances[\"jform_articletext\"].getValue();","exists":"There is already a Read more ... link that has been inserted. Only one link is permitted. Use {pagebreak} to split the page up further."},"plg_editor_tinymce":{"tinyMCE":{"articletext":{"joomlaMergeDefaults":true,"joomlaExtButtons":{"names":["button-0Module | ","button-1Menu | ","button-2Contact | ","button-3Article | ","button-4Image | ","button-5PageBreak | ","button-6ReadMore | "],"script":["!(function(){\r\n\t\t\t\tvar getBtnOptions = new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),\r\n\t\t\t\t\tbtnOptions = getBtnOptions(),\r\n\t\t\t\t\tmodalWidth = btnOptions.size && btnOptions.size.x ? btnOptions.size.x : null,\r\n\t\t\t\t\tmodalHeight = btnOptions.size && btnOptions.size.y ? btnOptions.size.y : null;\r\n\t\t\t\teditor.addButton(\"button-0Module\", {\r\n\t\t\t\t\ttext: \"Module\",\r\n\t\t\t\t\ttitle: \"Module\",\r\n\t\t\t\t\ticon: \"none icon-file-add\",\r\n\t\t\t\t\tonclick: function () {\r\n\t\t\t\t\t\t\tvar modalOptions = {\r\n\t\t\t\t\t\t\t\ttitle : \"Module\",\r\n\t\t\t\t\t\t\t\turl : 'http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform_articletext&3b291fd79ac7300fda0a7e1108c0ed4c=1',\r\n\t\t\t\t\t\t\t\tbuttons: [{\r\n\t\t\t\t\t\t\t\t\ttext : \"Close\",\r\n\t\t\t\t\t\t\t\t\tonclick: \"close\"\r\n\t\t\t\t\t\t\t\t}]\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalWidth){\r\n\t\t\t\t\t\t\t\tmodalOptions.width = modalWidth;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalHeight){\r\n\t\t\t\t\t\t\t\tmodalOptions.height = modalHeight;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\teditor.windowManager.open(modalOptions);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t})();","!(function(){\r\n\t\t\t\tvar getBtnOptions = new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),\r\n\t\t\t\t\tbtnOptions = getBtnOptions(),\r\n\t\t\t\t\tmodalWidth = btnOptions.size && btnOptions.size.x ? btnOptions.size.x : null,\r\n\t\t\t\t\tmodalHeight = btnOptions.size && btnOptions.size.y ? btnOptions.size.y : null;\r\n\t\t\t\teditor.addButton(\"button-1Menu\", {\r\n\t\t\t\t\ttext: \"Menu\",\r\n\t\t\t\t\ttitle: \"Menu\",\r\n\t\t\t\t\ticon: \"none icon-share-alt\",\r\n\t\t\t\t\tonclick: function () {\r\n\t\t\t\t\t\t\tvar modalOptions = {\r\n\t\t\t\t\t\t\t\ttitle : \"Menu\",\r\n\t\t\t\t\t\t\t\turl : 'http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_menus&view=items&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext',\r\n\t\t\t\t\t\t\t\tbuttons: [{\r\n\t\t\t\t\t\t\t\t\ttext : \"Close\",\r\n\t\t\t\t\t\t\t\t\tonclick: \"close\"\r\n\t\t\t\t\t\t\t\t}]\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalWidth){\r\n\t\t\t\t\t\t\t\tmodalOptions.width = modalWidth;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalHeight){\r\n\t\t\t\t\t\t\t\tmodalOptions.height = modalHeight;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\teditor.windowManager.open(modalOptions);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t})();","!(function(){\r\n\t\t\t\tvar getBtnOptions = new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),\r\n\t\t\t\t\tbtnOptions = getBtnOptions(),\r\n\t\t\t\t\tmodalWidth = btnOptions.size && btnOptions.size.x ? btnOptions.size.x : null,\r\n\t\t\t\t\tmodalHeight = btnOptions.size && btnOptions.size.y ? btnOptions.size.y : null;\r\n\t\t\t\teditor.addButton(\"button-2Contact\", {\r\n\t\t\t\t\ttext: \"Contact\",\r\n\t\t\t\t\ttitle: \"Contact\",\r\n\t\t\t\t\ticon: \"none icon-address\",\r\n\t\t\t\t\tonclick: function () {\r\n\t\t\t\t\t\t\tvar modalOptions = {\r\n\t\t\t\t\t\t\t\ttitle : \"Contact\",\r\n\t\t\t\t\t\t\t\turl : 'http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_contact&view=contacts&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext',\r\n\t\t\t\t\t\t\t\tbuttons: [{\r\n\t\t\t\t\t\t\t\t\ttext : \"Close\",\r\n\t\t\t\t\t\t\t\t\tonclick: \"close\"\r\n\t\t\t\t\t\t\t\t}]\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalWidth){\r\n\t\t\t\t\t\t\t\tmodalOptions.width = modalWidth;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalHeight){\r\n\t\t\t\t\t\t\t\tmodalOptions.height = modalHeight;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\teditor.windowManager.open(modalOptions);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t})();","!(function(){\r\n\t\t\t\tvar getBtnOptions = new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),\r\n\t\t\t\t\tbtnOptions = getBtnOptions(),\r\n\t\t\t\t\tmodalWidth = btnOptions.size && btnOptions.size.x ? btnOptions.size.x : null,\r\n\t\t\t\t\tmodalHeight = btnOptions.size && btnOptions.size.y ? btnOptions.size.y : null;\r\n\t\t\t\teditor.addButton(\"button-3Article\", {\r\n\t\t\t\t\ttext: \"Article\",\r\n\t\t\t\t\ttitle: \"Article\",\r\n\t\t\t\t\ticon: \"none icon-file-add\",\r\n\t\t\t\t\tonclick: function () {\r\n\t\t\t\t\t\t\tvar modalOptions = {\r\n\t\t\t\t\t\t\t\ttitle : \"Article\",\r\n\t\t\t\t\t\t\t\turl : 'http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_content&view=articles&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext',\r\n\t\t\t\t\t\t\t\tbuttons: [{\r\n\t\t\t\t\t\t\t\t\ttext : \"Close\",\r\n\t\t\t\t\t\t\t\t\tonclick: \"close\"\r\n\t\t\t\t\t\t\t\t}]\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalWidth){\r\n\t\t\t\t\t\t\t\tmodalOptions.width = modalWidth;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalHeight){\r\n\t\t\t\t\t\t\t\tmodalOptions.height = modalHeight;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\teditor.windowManager.open(modalOptions);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t})();","!(function(){\r\n\t\t\t\tvar getBtnOptions = new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),\r\n\t\t\t\t\tbtnOptions = getBtnOptions(),\r\n\t\t\t\t\tmodalWidth = btnOptions.size && btnOptions.size.x ? btnOptions.size.x : null,\r\n\t\t\t\t\tmodalHeight = btnOptions.size && btnOptions.size.y ? btnOptions.size.y : null;\r\n\t\t\t\teditor.addButton(\"button-4Image\", {\r\n\t\t\t\t\ttext: \"Image\",\r\n\t\t\t\t\ttitle: \"Image\",\r\n\t\t\t\t\ticon: \"none icon-pictures\",\r\n\t\t\t\t\tonclick: function () {\r\n\t\t\t\t\t\t\tvar modalOptions = {\r\n\t\t\t\t\t\t\t\ttitle : \"Image\",\r\n\t\t\t\t\t\t\t\turl : 'http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_media&view=images&tmpl=component&e_name=jform_articletext&asset=180&author=238',\r\n\t\t\t\t\t\t\t\tbuttons: [{\r\n\t\t\t\t\t\t\t\t\ttext : \"Close\",\r\n\t\t\t\t\t\t\t\t\tonclick: \"close\"\r\n\t\t\t\t\t\t\t\t}]\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalWidth){\r\n\t\t\t\t\t\t\t\tmodalOptions.width = modalWidth;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalHeight){\r\n\t\t\t\t\t\t\t\tmodalOptions.height = modalHeight;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\teditor.windowManager.open(modalOptions);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t})();","!(function(){\r\n\t\t\t\tvar getBtnOptions = new Function(\"return {handler: \\'iframe\\', size: {x: 500, y: 300}}\"),\r\n\t\t\t\t\tbtnOptions = getBtnOptions(),\r\n\t\t\t\t\tmodalWidth = btnOptions.size && btnOptions.size.x ? btnOptions.size.x : null,\r\n\t\t\t\t\tmodalHeight = btnOptions.size && btnOptions.size.y ? btnOptions.size.y : null;\r\n\t\t\t\teditor.addButton(\"button-5PageBreak\", {\r\n\t\t\t\t\ttext: \"Page Break\",\r\n\t\t\t\t\ttitle: \"Page Break\",\r\n\t\t\t\t\ticon: \"none icon-copy\",\r\n\t\t\t\t\tonclick: function () {\r\n\t\t\t\t\t\t\tvar modalOptions = {\r\n\t\t\t\t\t\t\t\ttitle : \"Page Break\",\r\n\t\t\t\t\t\t\t\turl : 'http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_content&view=article&layout=pagebreak&tmpl=component&e_name=jform_articletext',\r\n\t\t\t\t\t\t\t\tbuttons: [{\r\n\t\t\t\t\t\t\t\t\ttext : \"Close\",\r\n\t\t\t\t\t\t\t\t\tonclick: \"close\"\r\n\t\t\t\t\t\t\t\t}]\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalWidth){\r\n\t\t\t\t\t\t\t\tmodalOptions.width = modalWidth;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(modalHeight){\r\n\t\t\t\t\t\t\t\tmodalOptions.height = modalHeight;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\teditor.windowManager.open(modalOptions);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t})();","!(function(){\r\n\t\t\t\tvar btnOptions = {}, modalWidth = null, modalHeight = null;\r\n\t\t\t\teditor.addButton(\"button-6ReadMore\", {\r\n\t\t\t\t\ttext: \"Read More\",\r\n\t\t\t\t\ttitle: \"Read More\",\r\n\t\t\t\t\ticon: \"none icon-arrow-down\",\r\n\t\t\t\t\tonclick: function () {\r\n\r\n\t\t\t\t\t\tinsertReadmore('jform_articletext');return false;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t})();"]}},"default":{"setCustomDir":"\/joomla-cms-staging","mediaUploadPath":"","uploadUri":"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_media&task=file.upload&tmpl=component&5e75b5388fdfa8f9b44ae7d4e29f5c3a=fcui6u1hub08716gbou4rprau7&3b291fd79ac7300fda0a7e1108c0ed4c=1&asset=image&format=json","suffix":".min","baseURL":"\/joomla-cms-staging\/media\/editors\/tinymce","directionality":"ltr","language":"en","autosave_restore_when_empty":false,"skin":"lightgray","theme":"modern","schema":"html5","menubar":"edit insert view format table tools","toolbar1":"bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect | formatselect fontselect fontsizeselect | searchreplace | bullist numlist | outdent indent | undo redo | link unlink anchor image | code | forecolor backcolor | fullscreen | table | subscript superscript | charmap emoticons media hr ltr rtl | cut copy paste pastetext | visualchars visualblocks nonbreaking blockquote template | print preview codesample insertdatetime removeformat","toolbar2":null,"plugins":"autolink,lists,save,colorpicker,importcss,searchreplace,link,anchor,image,code,textcolor,fullscreen,table,charmap,emoticons,media,hr,directionality,paste,visualchars,visualblocks,nonbreaking,template,print,preview,codesample,insertdatetime,wordcount,advlist,autosave,contextmenu","inline_styles":true,"gecko_spellcheck":true,"entity_encoding":"raw","verify_html":true,"valid_elements":"","extended_valid_elements":"hr[id|title|alt|class|width|size|noshade]","invalid_elements":"script,applet,iframe","relative_urls":true,"remove_script_host":false,"content_css":"\/joomla-cms-staging\/templates\/system\/css\/editor.css","document_base_url":"\/joomla-cms-staging\/","paste_data_images":true,"importcss_append":true,"image_title":true,"height":"550","width":"","resize":"both","templates":[{"title":"Layout","description":"HTML layout.","url":"\/joomla-cms-staging\/media\/editors\/tinymce\/templates\/layout1.html"},{"title":"Simple Snippet","description":"Simple HTML snippet.","url":"\/joomla-cms-staging\/media\/editors\/tinymce\/templates\/snippet1.html"}],"image_advtab":true,"external_plugins":{"jdragdrop":"http:\/\/localhost\/joomla-cms-staging\/media\/editors\/tinymce\/js\/plugins\/dragdrop\/plugin.min.js"},"force_br_newlines":false,"force_p_newlines":true,"forced_root_block":"p","rel_list":[{"title":"None","value":""},{"title":"Alternate","value":"alternate"},{"title":"Author","value":"author"},{"title":"Bookmark","value":"bookmark"},{"title":"Help","value":"help"},{"title":"License","value":"license"},{"title":"Lightbox","value":"lightbox"},{"title":"Next","value":"next"},{"title":"No Follow","value":"nofollow"},{"title":"No Referrer","value":"noreferrer"},{"title":"Prefetch","value":"prefetch"},{"title":"Prev","value":"prev"},{"title":"Search","value":"search"},{"title":"Tag","value":"tag"}],"toolbar_items_size":"small"}}}}</script>
After PR:
<script type="application/json" class="joomla-script-options new">{"csrf.token":"3b291fd79ac7300fda0a7e1108c0ed4c","system.paths":{"root":"\/joomla-cms-staging","base":"\/joomla-cms-staging\/administrator"},"joomla.jtext":{"JLIB_FORM_FIELD_INVALID":"Invalid field: ","PLG_TINY_ERR_UNSUPPORTEDBROWSER":"Drag and drop image upload is not available for your browser. Please consider using a fully HTML5 compatible browser.","JGLOBAL_KEEP_TYPING":"Keep typing ...","JGLOBAL_LOOKING_FOR":"Looking for","ERROR":"Error","WARNING":"Warning","NOTICE":"Notice","MESSAGE":"Message","JLIB_JS_AJAX_ERROR_CONNECTION_ABORT":"A connection abort has occurred while fetching the JSON data.","JLIB_JS_AJAX_ERROR_NO_CONTENT":"No content was returned.","JLIB_JS_AJAX_ERROR_OTHER":"An error has occurred while fetching the JSON data: HTTP %s status code.","JLIB_JS_AJAX_ERROR_PARSE":"A parse error has occurred while processing the following JSON data:<br\/><code style=\"color:inherit;white-space:pre-wrap;padding:0;margin:0;border:0;background:inherit;\">%s<\/code>","JLIB_JS_AJAX_ERROR_TIMEOUT":"A timeout has occurred while fetching the JSON data.","JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST":"Please first make a selection from the list."},"system.keepalive":{"interval":840000,"uri":"\/joomla-cms-staging\/administrator\/index.php?option=com_ajax&format=json"},"xtd-pagebreak":{"editor":"jform_articletext"},"xtd-readmore":{"editor":"Joomla.editors.instances[\"jform_articletext\"].getValue();","exists":"There is already a Read more ... link that has been inserted. Only one link is permitted. Use {pagebreak} to split the page up further."},"plg_editor_tinymce":{"tinyMCE":{"articletext":{"joomlaMergeDefaults":true,"joomlaExtButtons":{"names":["button-0Module | ","button-1Menu | ","button-2Contact | ","button-3Article | ","button-4Image | ","button-5PageBreak | ","button-6ReadMore | "],"script":["!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-0Module\",{text:\"Module\",title:\"Module\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Module\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform_articletext&3b291fd79ac7300fda0a7e1108c0ed4c=1\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();","!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-0Module\",{text:\"Module\",title:\"Module\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Module\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform_articletext&3b291fd79ac7300fda0a7e1108c0ed4c=1\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-1Menu\",{text:\"Menu\",title:\"Menu\",icon:\"none icon-share-alt\",onclick:function(){var modalOptions={title:\"Menu\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_menus&view=items&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();","!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-0Module\",{text:\"Module\",title:\"Module\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Module\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform_articletext&3b291fd79ac7300fda0a7e1108c0ed4c=1\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-1Menu\",{text:\"Menu\",title:\"Menu\",icon:\"none icon-share-alt\",onclick:function(){var modalOptions={title:\"Menu\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_menus&view=items&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-2Contact\",{text:\"Contact\",title:\"Contact\",icon:\"none icon-address\",onclick:function(){var modalOptions={title:\"Contact\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_contact&view=contacts&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();","!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-0Module\",{text:\"Module\",title:\"Module\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Module\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform_articletext&3b291fd79ac7300fda0a7e1108c0ed4c=1\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-1Menu\",{text:\"Menu\",title:\"Menu\",icon:\"none icon-share-alt\",onclick:function(){var modalOptions={title:\"Menu\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_menus&view=items&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-2Contact\",{text:\"Contact\",title:\"Contact\",icon:\"none icon-address\",onclick:function(){var modalOptions={title:\"Contact\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_contact&view=contacts&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-3Article\",{text:\"Article\",title:\"Article\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Article\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_content&view=articles&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();","!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-0Module\",{text:\"Module\",title:\"Module\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Module\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform_articletext&3b291fd79ac7300fda0a7e1108c0ed4c=1\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-1Menu\",{text:\"Menu\",title:\"Menu\",icon:\"none icon-share-alt\",onclick:function(){var modalOptions={title:\"Menu\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_menus&view=items&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-2Contact\",{text:\"Contact\",title:\"Contact\",icon:\"none icon-address\",onclick:function(){var modalOptions={title:\"Contact\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_contact&view=contacts&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-3Article\",{text:\"Article\",title:\"Article\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Article\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_content&view=articles&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-4Image\",{text:\"Image\",title:\"Image\",icon:\"none icon-pictures\",onclick:function(){var modalOptions={title:\"Image\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_media&view=images&tmpl=component&e_name=jform_articletext&asset=180&author=238\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();","!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-0Module\",{text:\"Module\",title:\"Module\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Module\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform_articletext&3b291fd79ac7300fda0a7e1108c0ed4c=1\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-1Menu\",{text:\"Menu\",title:\"Menu\",icon:\"none icon-share-alt\",onclick:function(){var modalOptions={title:\"Menu\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_menus&view=items&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-2Contact\",{text:\"Contact\",title:\"Contact\",icon:\"none icon-address\",onclick:function(){var modalOptions={title:\"Contact\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_contact&view=contacts&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-3Article\",{text:\"Article\",title:\"Article\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Article\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_content&view=articles&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-4Image\",{text:\"Image\",title:\"Image\",icon:\"none icon-pictures\",onclick:function(){var modalOptions={title:\"Image\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_media&view=images&tmpl=component&e_name=jform_articletext&asset=180&author=238\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 500, y: 300}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-5PageBreak\",{text:\"Page Break\",title:\"Page Break\",icon:\"none icon-copy\",onclick:function(){var modalOptions={title:\"Page Break\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_content&view=article&layout=pagebreak&tmpl=component&e_name=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();","!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-0Module\",{text:\"Module\",title:\"Module\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Module\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform_articletext&3b291fd79ac7300fda0a7e1108c0ed4c=1\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-1Menu\",{text:\"Menu\",title:\"Menu\",icon:\"none icon-share-alt\",onclick:function(){var modalOptions={title:\"Menu\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_menus&view=items&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-2Contact\",{text:\"Contact\",title:\"Contact\",icon:\"none icon-address\",onclick:function(){var modalOptions={title:\"Contact\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_contact&view=contacts&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-3Article\",{text:\"Article\",title:\"Article\",icon:\"none icon-file-add\",onclick:function(){var modalOptions={title:\"Article\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_content&view=articles&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-4Image\",{text:\"Image\",title:\"Image\",icon:\"none icon-pictures\",onclick:function(){var modalOptions={title:\"Image\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_media&view=images&tmpl=component&e_name=jform_articletext&asset=180&author=238\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 500, y: 300}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-5PageBreak\",{text:\"Page Break\",title:\"Page Break\",icon:\"none icon-copy\",onclick:function(){var modalOptions={title:\"Page Break\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_content&view=article&layout=pagebreak&tmpl=component&e_name=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var btnOptions={},modalWidth=null,modalHeight=null;editor.addButton(\"button-6ReadMore\",{text:\"Read More\",title:\"Read More\",icon:\"none icon-arrow-down\",onclick:function(){insertReadmore('jform_articletext');return false;;}});})();"]}},"default":{"setCustomDir":"\/joomla-cms-staging","mediaUploadPath":"","uploadUri":"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_media&task=file.upload&tmpl=component&5e75b5388fdfa8f9b44ae7d4e29f5c3a=fcui6u1hub08716gbou4rprau7&3b291fd79ac7300fda0a7e1108c0ed4c=1&asset=image&format=json","suffix":".min","baseURL":"\/joomla-cms-staging\/media\/editors\/tinymce","directionality":"ltr","language":"en","autosave_restore_when_empty":false,"skin":"lightgray","theme":"modern","schema":"html5","menubar":"edit insert view format table tools","toolbar1":"bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect | formatselect fontselect fontsizeselect | searchreplace | bullist numlist | outdent indent | undo redo | link unlink anchor image | code | forecolor backcolor | fullscreen | table | subscript superscript | charmap emoticons media hr ltr rtl | cut copy paste pastetext | visualchars visualblocks nonbreaking blockquote template | print preview codesample insertdatetime removeformat","toolbar2":null,"plugins":"autolink,lists,save,colorpicker,importcss,searchreplace,link,anchor,image,code,textcolor,fullscreen,table,charmap,emoticons,media,hr,directionality,paste,visualchars,visualblocks,nonbreaking,template,print,preview,codesample,insertdatetime,wordcount,advlist,autosave,contextmenu","inline_styles":true,"gecko_spellcheck":true,"entity_encoding":"raw","verify_html":true,"valid_elements":"","extended_valid_elements":"hr[id|title|alt|class|width|size|noshade]","invalid_elements":"script,applet,iframe","relative_urls":true,"remove_script_host":false,"content_css":"\/joomla-cms-staging\/templates\/system\/css\/editor.css","document_base_url":"\/joomla-cms-staging\/","paste_data_images":true,"importcss_append":true,"image_title":true,"height":"550","width":"","resize":"both","templates":[{"title":"Layout","description":"HTML layout.","url":"\/joomla-cms-staging\/media\/editors\/tinymce\/templates\/layout1.html"},{"title":"Simple Snippet","description":"Simple HTML snippet.","url":"\/joomla-cms-staging\/media\/editors\/tinymce\/templates\/snippet1.html"}],"image_advtab":true,"external_plugins":{"jdragdrop":"http:\/\/localhost\/joomla-cms-staging\/media\/editors\/tinymce\/js\/plugins\/dragdrop\/plugin.min.js"},"force_br_newlines":false,"force_p_newlines":true,"forced_root_block":"p","rel_list":[{"title":"None","value":""},{"title":"Alternate","value":"alternate"},{"title":"Author","value":"author"},{"title":"Bookmark","value":"bookmark"},{"title":"Help","value":"help"},{"title":"License","value":"license"},{"title":"Lightbox","value":"lightbox"},{"title":"Next","value":"next"},{"title":"No Follow","value":"nofollow"},{"title":"No Referrer","value":"noreferrer"},{"title":"Prefetch","value":"prefetch"},{"title":"Prev","value":"prev"},{"title":"Search","value":"search"},{"title":"Tag","value":"tag"}],"toolbar_items_size":"small"}}}}</script>
In the After PR, please search for the following where it is repeated many times:
{var modalOptions={title:\"Menu\",url:\"http:\/\/localhost\/joomla-cms-staging\/administrator\/index.php?option=com_menus&view=items&layout=modal&tmpl=component&3b291fd79ac7300fda0a7e1108c0ed4c=1&editor=jform_articletext\",buttons:[{text: \"Close\",onclick:\"close\"}]};if(modalWidth){modalOptions.width=modalWidth;}if(modalHeight){modalOptions.height = modalHeight;}editor.windowManager.open(modalOptions);}});})();!(function(){var getBtnOptions=new Function(\"return {handler: \\'iframe\\', size: {x: 800, y: 500}}\"),btnOptions=getBtnOptions(),modalWidth=btnOptions.size&&btnOptions.size.x?btnOptions.size.x:null,modalHeight=btnOptions.size&&btnOptions.size.y?btnOptions.size.y:null;editor.addButton(\"button-2Contact\",{text:\"Contact\",title:\"Contact\",icon:\"none icon-address\",onclick:function()
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Ready to Commit after two successful tests.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-02-26 03:11:40 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
Thank you @Quy and @brianteeman for the tests