Change code editor icon to say HTML.
This commit is contained in:
@@ -38,9 +38,11 @@ tinymce.PluginManager.add('codemirror', function(editor, url) {
|
||||
};
|
||||
|
||||
// Add a button to the button bar
|
||||
// EDX changed to show "HTML" on toolbar button
|
||||
editor.addButton('code', {
|
||||
title: 'Edit HTML',
|
||||
icon: 'code',
|
||||
text: 'HTML',
|
||||
icon: false,
|
||||
onclick: showSourceEditor
|
||||
});
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
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">�</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})});
|
||||
|
||||
Reference in New Issue
Block a user