MDL-14741: make tinymce toggle editor icon work as it should

This commit is contained in:
scyrma
2008-07-15 09:00:23 +00:00
parent b6943d3731
commit a33fa3ad83
3 changed files with 12 additions and 6 deletions
+1 -4
View File
@@ -197,10 +197,7 @@ echo <<<EOF
});
function toggleEditor(id) {
var elm = document.getElementById(id);
if (tinyMCE.getInstanceById(id) == null)
tinyMCE.execCommand('mceAddControl', false, id);
else
tinyMCE.execCommand('mceRemoveControl', false, id);
tinyMCE.execCommand('mceToggleEditor',false,elm);
}
function moodlefilemanager(field_name, url, type, win) {
tinyMCE.activeEditor.windowManager.open({