【问题标题】:ckeditor and inline editor both are in same pageckeditor 和内联编辑器都在同一页面中
【发布时间】:2013-10-22 16:14:19
【问题描述】:

我有一个带有 ckeditor 的主页,我需要另一个控件作为 内联 ckeditor(在同一页面中)。

我已经为 CKEDITOR 上的点击事件添加了一些代码(不是内联)。而且这个点击事件也出现在内联编辑器中,我怎样才能避免在内联编辑器上没有触发该事件。 .如何配置它。

内联编辑器:

    CKEDITOR.inline(document.getElementById(Element),{
removePlugins: 'maximize,resize',
            enterMode: CKEDITOR.ENTER_BR,

                        toolbar: [['Bold', 'Italic', 'Underline']]
                    });

【问题讨论】:

  • 您能否尝试用更多细节重写您的问题,什么应该(不)发生,您有什么?我不明白这个问题。

标签: javascript jquery asp.net ckeditor config


【解决方案1】:

听起来您需要在同一页面上创建多个实例,并传入单独的选项?

CKEDITOR.replace('editor1', { height: 100 });

CKEDITOR.replace('editor2', {
    removePlugins: 'maximize,resize',
    enterMode: CKEDITOR.ENTER_BR,
    toolbar: [['Bold', 'Italic', 'Underline']]
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多