[英]How to disable a plugin in the replace function of CkEditor?
我想在一些CKEditor textareas
上禁用圖像上傳。 我不想通過config.js文件這樣做,因為它將禁用所有textareas
。 我怎么能用.replace方法做到這一點?
例:
CKEDITOR.replace("meTextarea", {
// what should I write here to disable the plugin?
});
先感謝您
您只需將選項傳遞給CKEDITOR.replace()
函數:
CKEDITOR.replace('meTextarea', {
removePlugins: 'filebrowser'
});
在此處詳細了解設置配置: 設置配置 。
如果你無法從他們給定的函數中禁用if,那么在你的css中嘗試這個東西
.ck-file-dialog-button
{
display:none !important;
}
這將隱藏圖像上傳按鈕而不會打擾您的UI。
.ck-dropdown{
display:none !important;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.