1
我在2頁使用CKeditor。在第一頁上,我需要所有插件,而在第二頁上我只需要其中的幾個。我想辦法,我得到這個:Ckeditor刪除特定的插件?
config.removePlugins = 'elementspath,save,font,templates,';
在config.js.Now如果我config.js
添加此它關閉全局屬性,而不是特定的頁面上。 如何禁用特定頁面上的插件。 我這樣做是爲了讓textarea成爲ckeditor。
的Javascript:
<script>
var url = "<?php echo base_url(); ?>";
CKEDITOR.replace('template_body',{
//extraPlugins: 'imageuploader'
});
</script>
HTML:
<div class="elementbox">
<label class="form-label">Body<span class="required">*</span></label>
<div class="controls">
<textarea name="template_body" id="template_body" rows="10" cols="80"></textarea>
</div>
</div>
編輯 - 我甚至嘗試了這些按照所有的意見,但沒有工作。
<script>
var url = "<?php echo base_url(); ?>";
CKEDITOR.replace('template_body',{
//extraPlugins: 'imageuploader'
});
CKEDITOR.editorConfig = function(config) {
config.removePlugins = 'elementspath,save,font';
};
</script>
您可以嘗試使用window.location.pathname如果條件 – Afsar
你能告訴我任何小提琴嗎? –
你的具體頁面路徑是什麼? – Afsar