editor bug custom filed
-
If you add a Wysing editor in the custom field, I’ve found a bug that can not insert ads in place of Wysing editor that you have added.
version 1.7.61
======$ diff -u sam-dialog.js.org sam-dialog.js --- sam-dialog.js.org 2013-10-23 20:13:03.000000000 +0900 +++ sam-dialog.js 2013-10-23 20:09:42.000000000 +0900 @@ -22,7 +22,7 @@ if(samItem == 1) samCode += ' name="' + samIdObj.options[samIdObj.selectedIndex].text + '"' if(samBA == 1) samCode += ' codes="true"]'; else samCode += ']'; - window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, samCode); + window.tinyMCE.execInstanceCommand(window.tinyMCE.activeEditor.id, 'mceInsertContent', false, samCode); tinyMCEPopup.editor.execCommand('mceRepaint'); tinyMCEPopup.close(); return; @@ -46,7 +46,7 @@ if(samBA == 1) samCode += ' codes="true"]'; else samCode += ']'; - window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, samCode); + window.tinyMCE.execInstanceCommand(window.tinyMCE.activeEditor.id, 'mceInsertContent', false, samCode); tinyMCEPopup.editor.execCommand('mceRepaint'); tinyMCEPopup.close(); return; @@ -70,7 +70,7 @@ if(samBA == 1) samCode += ' codes="true"]'; else samCode += ']'; - window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, samCode); + window.tinyMCE.execInstanceCommand(window.tinyMCE.activeEditor.id, 'mceInsertContent', false, samCode); tinyMCEPopup.editor.execCommand('mceRepaint'); tinyMCEPopup.close(); return; @@ -92,7 +92,7 @@ if(samItem == 1) samCode += ' name="' + samIdObj.options[samIdObj.selectedIndex].text + '"' samCode += ']'; - window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, samCode); + window.tinyMCE.execInstanceCommand(window.tinyMCE.activeEditor.id, 'mceInsertContent', false, samCode); tinyMCEPopup.editor.execCommand('mceRepaint'); tinyMCEPopup.close(); return;
The topic ‘editor bug custom filed’ is closed to new replies.