“lang.link.toolbar 为空或不是对象”当在 IE7 上使用 CKeditor 时
我仅在 IE7 中收到此错误。
lang.link.toolbar 为 null 或不是对象
我想我可能在设置语言时不小心删除了一些东西,所以我去了 ckeditor/lang/en.js ,确实有一个 CKEDITOR.lang.en.link.toolbar
正在设置。
我使用 jQuery 适配器设置了实际的 CKEditor,如下所示...
$( '#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
});
有谁知道为什么会发生此错误?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想更改 ckEditor 语言,请尝试添加以下内容:
或者您可以在 CKEditor 语言演示 上的多语言界面选项卡中看到以下示例
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
等编辑准备好后你再打电话怎么样?
InstanceReady 事件
How about you make your call once the editor is ready.
InstanceReady event