从工具栏删除上传按钮

时间:2012-10-31 18:09:43

标签: ckeditor ckfinder

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

3 个答案:

答案 0 :(得分:0)

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

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

希望它有效

答案 1 :(得分:0)

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

config.removeModules = 'UploadFileButton';

答案 2 :(得分:-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' ] }
]
});
相关问题