gpt4 book ai didi

jquery - 如何禁用 ckeditor 中的保存按钮?

转载 作者:行者123 更新时间:2023-12-03 22:55:12 27 4
gpt4 key购买 nike

我当前不需要 ckeditor 中的任何 ajax 功能。如何从工具栏中删除该按钮?如果我不禁用该保存按钮,当我单击该按钮时,我会收到奇怪的错误。我遵循了本教程:-

http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Integration

提前致谢:)

最佳答案

在配置文件中,您可以指定自己的工具栏(并省略保存按钮)。

例如我的配置:

CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';

config.uiColor = '#F6F6F6';
config.fontSize_sizes = '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;15/15px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px' ;
config.forcePasteAsPlainText = true;
config.format_tags = 'p;h2;h3;h4;h5;h6;pre;div'
config.height = "400px";
// config.protectedSource.push( //g ); // Allows PHP Code
// config.shiftEnterMode = CKEDITOR.ENTER_BR;
config.skin = 'kama';
config.undoStackSize = 90;
config.width = "98%";

config.disableNativeSpellChecker = false;
config.scayt_autoStartup = false;

config.toolbarCanCollapse = false;
config.toolbar = 'Cms';
config.toolbar_Cms =
[
['Source'],
['Cut','Copy','Paste','PasteText','PasteFromWord'],
['Undo','Redo','-','SelectAll','RemoveFormat'],
'/',
['Bold','Italic','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
['Image','Table','SpecialChar'],
'/',
['Styles','Format','FontSize'],
['TextColor'],
['Maximize', 'ShowBlocks']
];
};

关于jquery - 如何禁用 ckeditor 中的保存按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4305929/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com