开发者

"lang.link.toolbar is null or not an object" when using CKeditor with IE7

开发者 https://www.devze.com 2023-01-26 00:50 出处:网络
I get this error only in IE7. lang.link.toolbar is null or not an object I thought I may have accidentally deleted something when setting up the language, so I went to ckeditor/lang/en.js and ther

I get this error only in IE7.

lang.link.toolbar is null or not an object

I thought I may have accidentally deleted something when setting up the language, so I went to ckeditor/lang/en.js and there was indeed a CKEDITOR.lang.en.link.toolbar being set.

I set up the actual CKEditor using the jQuery adapter like so...

$( '#input-product-description' ).ckeditor(
  function() { /* callback code */ },
  {
  startupFocus: true,
  language: 'en',
  defaultLanguage: 'en',
  removePlugins : 'smiley, about, sourcearea, flash, newpage, pagebreak, popup, preview, stylescombo, table, tabletools, elementspath, save, templates, print, find, font, forms, horizontalrule, justify, format, colorbutton, div, blockquote, indent, clipboard, image, showblocks, wsc' ,
  toolbar :
      [
        ['Undo','Redo'],
        ['Bold','Italic'],
        ['NumberedList','BulletedList']
      ],
   resize_enabled: 开发者_高级运维false   

 });

Does anyone know why this error may occur?


if you want to change the ckEditor language plz try to add this as the following: or you can see the following examble from the Multi-language interface tab on CKEditor language demo

var editor = CKEDITOR.instances.editorName; // GETTING AN INSTANCE OF THE EDITOR
var editorData = editor ? editor.getData() : initialHtml; // GET THE OLD DATA IF YOU WANT TO REUSE IT
if (editor) {
editor.destroy(); // DESTROY THE OLD EDITOR
}
editor = CKEDITOR.appendTo('demoInside', { language: 'en' }); // add new one to your target
editor.setData(editorData); // set your new data


How about you make your call once the editor is ready.

InstanceReady event

0

精彩评论

暂无评论...
验证码 换一张
取 消