Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 894
alex Avatar asked Nov 22 '10 02:11

alex


1 Answers

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
like image 186
MeqDotNet Avatar answered Oct 09 '22 11:10

MeqDotNet