【问题标题】:ckeditor image dialog sizeckeditor 图像对话框大小
【发布时间】:2013-10-10 14:53:52
【问题描述】:

我已经使用 ckeditor 图像插件配置了我自己的自定义图像存储库。 现在我想改变图像对话框的大小。我已经检查了很多,但发现仅更改文件浏览器和 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';
};

谢谢

【问题讨论】:

    标签: javascript ckeditor


    【解决方案1】:

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

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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-05-11
    • 1970-01-01
    • 1970-01-01
    • 2013-05-22
    • 1970-01-01
    • 2011-06-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多