【问题标题】:ckeditor 4.3.3 height attributes doesnt workckeditor 4.3.3 高度属性不起作用
【发布时间】:2014-04-22 23:10:25
【问题描述】:

我遇到了 ckeditor 中的 height 属性问题。我根本无法设置它。 宽度工作正常.. 我在做所有正常的事情

  • 在头部加载 ckeditor
  • 将 CKEDITOR.replace 代码放在 textarea 之后

现在我正在尝试在默认的 config.js 中设置高度,但没有成功。宽度有效,但高度无效。我什至尝试在 CKEDITOR.replace 代码中包含高度,但仍然没有乐趣。

IE11、Firefox 和 Chrome 中的相同问题

【问题讨论】:

  • 一些代码会有所帮助。

标签: jquery height ckeditor


【解决方案1】:

您是否尝试过以下任何一种方法

config.height = 500;        // 500 pixels.
config.height = '25em';     // CSS length.
config.height = '300px';    // CSS length.

如 api 文档中所述@http://docs.ckeditor.com/#!/api/CKEDITOR.config

【讨论】:

    【解决方案2】:

    这可能是因为您在替换方法中使用了高度。并且您正在尝试在配置中进行设置..

    推荐链接:https://ckeditor.com/old/forums/Support

    我的 A4 页面尺寸确实如此。

    CKEDITOR.replace( 'template_ckeditor', {
    
        width: '210mm', 
        height: '297mm'
    } ); 
    

    【讨论】:

      猜你喜欢
      • 2013-11-21
      • 1970-01-01
      • 1970-01-01
      • 2018-10-10
      • 2013-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多