0

我已将 ckeditor 与 ckfinder 集成。我想从工具栏中删除上传按钮。当您从 ckeditor 单击图像/链接时,将打开一个文件浏览器,然后单击“浏览服务器”按钮。当您可以浏览文件夹时,它会打开另一个浏览器。在顶部有一个工具栏部分,我们可以在其中找到“设置、帮助和上传”按钮。我必须删除那个上传按钮。我正在使用 JavaScript。请帮忙

4

3 回答 3

0

要删除 ckfinder 上传按钮,您需要在 ckfinder config.js 中添加一些代码

CKFinder.config.toolbar_Full = [['Refresh', 'Settings', 'Maximize']];

希望它有效

于 2014-05-21T04:26:34.050 回答
0

在主 config.js(ckfinder 3 根文件夹)上设置:

config.removeModules = 'UploadFileButton';
于 2015-11-09T20:08:02.557 回答
-1

使用这种自定义工具栏的方式

editor_edit = CKEDITOR.replace( 'e_notification', {
uiColor: '#888888',
height: '250px',
filebrowserBrowseUrl : 'http://localhost/SUServer1/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : 'http://localhost/SUServer1/ckfinder/ckfinder.html?type=Images',
filebrowserFlashBrowseUrl : 'http://localhost/SUServer1/ckfinder/ckfinder.html?type=Flash',
filebrowserUploadUrl : 'http://localhost/SUServer1/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : 'http://localhost/SUServer1/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'http://localhost/SUServer1/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
filebrowserWindowWidth : '1000',
filebrowserWindowHeight : '700',
toolbar :
[
    { name: 'document', items : [ 'Source','-','Templates' ] },
    { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
    '/',
    { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
    { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv',
    '-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
    { name: 'links', items : [ 'Link','Unlink','Anchor' ] },
    { name: 'insert', items : [ 'Image','Table','HorizontalRule','Smiley','SpecialChar','Iframe' ] },
    '/',
    { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
    { name: 'colors', items : [ 'TextColor','BGColor' ] }
]
});
于 2013-05-27T19:59:43.077 回答