4
jinyPluginでTinyMCE 3.5を使用しています。TinyMCEとInternet Explorer 8で "Object required"エラーメッセージを解決するには
私が指定し、その後で私の要素にエディタを取り付けていないモードでtinyMCE.init()メソッドを使用しています:インターネットエクスプローラ8にsuccessfulyエディタ負荷を
tinyMCE.execCommand('mceToggleEditor',false,jQuery(this).attr('id'));
が、「必要なオブジェクト」をスロー
21 while (node != rootNode) {
22 if (blockElements[node.nodeName])
23 return;
24
25 node = node.parentNode;
26 }
エラーなしは、Firefox、クロムやサファリでスローされません:エラー
エラーは以下のとおりである22行目ForceBlocks.jsからスローされます。
tinyMCE.execCommand方法のコンテキストである:
ADMIN = {
triggerTextArea: function (event) {
currentTarget = event.currentTarget;
if(jQuery(currentTarget).hasClass('ajaxform'))
{
textareas = jQuery(this).find('.question-text-editor textarea');
addTextArea = true;
} else {
textareas = jQuery(this).closest('.question-wrapper').find('.question-text-editor textarea');
addTextArea = (jQuery(this).is(':checked') && jQuery(this).val() == 'html');
}
if(addTextArea == true)
{
textareas.each(function() {
console.log(jQuery(this).attr('id'));
tinyMCE.execCommand('mceToggleEditor',false,jQuery(this).attr('id'));
});
} else {
textareas.each(function() {
editorId = jQuery(this).attr('id');
tinymce.get(editorId).hide();
});
}
}
}
if(addTextArea == true)
{
textareas.each(function() {
console.log(jQuery(this).attr('id'));
tinyMCE.execCommand('mceToggleEditor',false,jQuery(this).attr('id'));
});
} else {
textareas.each(function() {
editorId = jQuery(this).attr('id');
tinymce.get(editorId).hide();
});
}
}
}
は、私が追加することによってこの問題を解決することができた: 'forced_root_block:null'なので ' tinyMCE.init() 'メソッドへ これはしかしInternet Explorerでエラーの原因となっているだろう、なぜ わかりません。 – Jimbo