如何将Wiris插件添加到CKEditor?

3

我有一个带有CKEditor集成的Rails应用程序。

我无法将Wiris插件集成到其中。

我的config.js看起来像这样:

CKEDITOR.editorConfig = function( config ) {
    config.toolbarGroups = [
        { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
        { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
        { name: 'links' },
        { name: 'insert' },
        { name: 'forms' },
        { name: 'tools' },
        { name: 'document',    groups: [ 'mode', 'document', 'doctools' ] },
        { name: 'others' },
        '/',
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
        { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
        { name: 'styles' },
        { name: 'colors' },
        { name: 'about' }
    ];

    config.removeButtons = 'Underline,Subscript,Superscript';

    config.format_tags = 'p;h1;h2;h3;pre';

    config.removeDialogTabs = 'image:advanced;link:advanced';
};

我已经从这里下载了Wiris插件,并将其复制到app/assets/javascripts/ckeditor/plugins中。

我尝试在config.js文件中添加以下内容:

CKEDITOR.editorConfig = function( config )
{
    config.extraPlugins += (config.extraPlugins.length == 0 ? '' : ',') + 'ckeditor_wiris';
    config.toolbar_Full.push({ name: 'wiris', 
    items : [ 'ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS' ]});
};

但似乎什么都没有起作用。

非常感谢任何帮助!


1
我们目前正在开发一个针对Ruby on Rails的特定插件,预计几周内发布。我们会再次在这里发布消息通知您。 - user3306551
1个回答

2
WIRIS现在可用于Ruby on Rails!您可以在http://www.wiris.com/plugins/demo/ckeditor/ruby/上查看CKeditor演示。下载和文档链接可在演示页面中找到。 我们的Ruby on Rails插件也适用于TinyMCE和通用HTML编辑器。

这个编辑器是为php还是ruby设计的?你提到了ruby,但是点击链接后它会重定向到php。 - Kanna
你可以从以下链接下载Ruby插件:http://www.wiris.com/en/plugins/ckeditor/download。你也可以从以下链接下载演示版:http://www.wiris.com/plugins/docs/demo-download。 - user3306551
我遇到了这个错误: -ActionController :: RoutingError(未找到匹配的路由[GET]“/assets/generic_wiris/tests/generic_demo.html”): - Kanna
这可能是您安装的特定问题,我们认为最好通过电子邮件跟进,请在support@wiris.com提供更多详细信息。 - user3306551

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接