ckeditor - 配置ckeditor后无法删除插件
问题描述
假设您应该通过简单地执行以下操作来删除所有工具栏:
editor.config.removePlugins = 'toolbar,elementspath';
但是,如果我在附加代码中执行该行,它不会返回。我没有收到“清除插件”的警报。我该怎么办?
<script type="text/javascript">
var editor;
function changeEnter()
{
//alert ( "Got here..." );
if ( editor )
editor.destroy( true );
var configShared = { toolbar :
[ { name: 'colors', items : [ 'TextColor', 'BGColor' ] } ],
allowedContent : true,
scayt_autoStartup : false,
height : '200px',
width : '300px',
enterMode : 2 };
// Create the editor again, with the appropriate settings and initialized text area.
editor = CKEDITOR.replace( 'eDiv', configShared ).setData( " " );
alert ( "Created editor" );
editor.config.removePlugins = 'toolbar,elementspath';
alert ( "cleared out plugins" );
}
</script>
</HEAD>
解决方案
推荐阅读
- python - 如何制作具有多个输入的是或否按钮?
- html - 如何使用jQuery删除href标签但保持文本自然?
- mysql - 将 datetime-local 类型的表单数据发布到 sql 表 datetime 字段
- ios - 是否可以在同一个函数中调用不同的重载函数?
- jquery - JQuery MultiSelect下拉列表不显示文本
- c - 可以使用`_mm256_movemask_ps`代替未定义的`_mm256_movemask_epi32`吗?
- vue.js - Vuetify 设置从右到左的文本
- tensorflow - ValueError: ('检查模型目标时出错:预期没有数据,但得到了
- google-apps-script - 如何使用 `ScriptApp.getService().getUrl()` 在电子表格中正确显示“当前 Web 应用程序 URL”?
- r - $operator 和 atomic vector - 将我的 data.frame 代码放在哪里