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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With