簡體   English   中英

我如何從ckeditor中刪除鏈接工具欄?

[英]how i can remove the linking toolbar from ckeditor?

我想通過刪除鏈接和上行鏈路控件來顯示ckeditor。 我該如何刪除它們。

有人可以告訴我如何在不更改配置文件的情況下執行此操作。 我需要在我自己的js文件中執行此操作。

我需要在頁面初始化和渲染之前進行配置。

FCKConfig.ToolbarSets["MyToolbarSet"] = [
    ['Bold', 'Italic', 'Underline'] // enumerate all buttons you need
];      


var oFCKeditor = new FCKeditor('MyTextArea');
        oFCKeditor.BasePath = '<%= Url.Content("~/Scripts/fckeditor/") %>';
        oFCKeditor.ToolbarSet = "MyToolbarSet";
        oFCKeditor.Height = 300;
        oFCKeditor.Width = 700;
        oFCKeditor.ReplaceTextarea();

您可以在以下網址找到您需要了解的所有信息: http//docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar

PS: 谷歌是你的朋友

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM