ckeditor图像对话框大小

时间:2013-10-10 14:53:52

标签: javascript ckeditor

我使用ckeditor image插件配置了自己的自定义图像存储库。 现在我想改变图像对话框的大小。我已经检查了很多,但只找到了改变文件浏览器和ckeditor本身的高度和宽度的属性。 如何更改ckeditor工具栏中图像图标上显示的图像对话框的大小。

这是我的代码:

CKEDITOR.editorConfig = function( config ) {    
    config.height = '350px';
    //config.width = '1000px';
    config.uiColor = '#d6d6d6';
    config.fullPage = true;
    config.extraPlugins = 'importdoc,docprops';
    config.scayt_autoStartup = true;
    config.filebrowserBrowseUrl = 'jcrPage';
    config.filebrowserImageBrowseUrl = 'jcrPage';
    config.filebrowserImageUploadUrl = 'imageUpload';
    config.filebrowserWindowHeight = 500;
    config.filebrowserWindowWidth = 500;
    config.filebrowserImageWindowWidth = 700;
    config.filebrowserImageWindowHeight = 700;
    config.toolbarGroups = [
        { name: 'document', groups: [ 'mode'] },
        { name: 'editing', groups: [ 'find', 'selection'] },
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
        { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
        { name: 'links' },
        { name: 'insert' },
        { name: 'styles' },
        { name: 'colors' },
    ];
    config.removePlugins = 'flash, iframe, templates, div, source, smiley, save, newpage';
    config.removeDialogTabs = 'image:advanced';
};

谢谢

1 个答案:

答案 0 :(得分:2)

对话框的大小由4个属性控制:widthheightminWidthminHeight

要了解如何自定义现有对话框的定义,请参阅我之前的回答:How do I customize a ckeditor 4.2 builtin plugin like links?

相关问题