Commit 0953583d by cahrens

Change code editor icon to say HTML.

parent ed51a664
...@@ -38,9 +38,11 @@ tinymce.PluginManager.add('codemirror', function(editor, url) { ...@@ -38,9 +38,11 @@ tinymce.PluginManager.add('codemirror', function(editor, url) {
}; };
// Add a button to the button bar // Add a button to the button bar
// EDX changed to show "HTML" on toolbar button
editor.addButton('code', { editor.addButton('code', {
title: 'Edit HTML', title: 'Edit HTML',
icon: 'code', text: 'HTML',
icon: false,
onclick: showSourceEditor onclick: showSourceEditor
}); });
......
tinymce.PluginManager.requireLangPack("codemirror"); tinymce.PluginManager.requireLangPack("codemirror");
tinymce.PluginManager.add("codemirror",function(a,c){function b(){a.focus();a.selection.collapse(!0);a.selection.setContent('<span class="CmCaReT" style="display:none">&#0;</span>');var b=a.windowManager.open({title:"HTML source code",url:c+"/source.html",width:800,height:550,resizable:!0,maximizable:!0,buttons:[{text:"Ok",subtype:"primary",onclick:function(){document.querySelectorAll(".mce-container-body>iframe")[0].contentWindow.submit();b.close()}},{text:"Cancel",onclick:"close"}]})}a.addButton("code", tinymce.PluginManager.add("codemirror",function(a,c){function b(){a.focus();a.selection.collapse(!0);a.selection.setContent('<span class="CmCaReT" style="display:none">&#0;</span>');var b=a.windowManager.open({title:"HTML source code",url:c+"/source.html",width:800,height:550,resizable:!0,maximizable:!0,buttons:[{text:"Ok",subtype:"primary",onclick:function(){document.querySelectorAll(".mce-container-body>iframe")[0].contentWindow.submit();b.close()}},{text:"Cancel",onclick:"close"}]})}a.addButton("code",
{title:"Edit HTML",icon:"code",onclick:b});a.addMenuItem("code",{icon:"code",text:"Edit HTML",context:"tools",onclick:b})}); {title:"Edit HTML",text:"HTML",icon:false,onclick:b});a.addMenuItem("code",{icon:"code",text:"Edit HTML",context:"tools",onclick:b})});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment