2

我尝试使用 ckeditor,但如果我放置例如 colorbutton 插件,textarea 就会消失。这是我尝试的方法:

CKEDITOR.replace( 'editor1', {
                extraPlugins: 'colorbutton',
            } );

我尝试了其他插件,但没关系。

如果我尝试只放置一个文件,该文件只是一个带有 textarea 的表单,则 colorbutton 插件可以正常工作。但是上面我尝试在我的网站中放置一个更复杂的表单,然后,textarea 消失了......

为什么?我的解决方案有问题吗?

4

1 回答 1

3

你用的是CKEditor 4吗?

如果是,那么您的包中可能只是缺少 colorbutton 插件(或其依赖项之一)。

检查您在 Firebug 中有哪些错误。是否缺少插件,您应该会看到类似

[CKEDITOR.resourceManager.load] Resource name "colorbutton" was not found
于 2012-12-03T17:21:13.190 回答