【问题标题】:Format tab in Ektron's Aloha editor: not loading plugins/ektron/format/format-plugin.js and need to add a buttonEktron 的 Aloha 编辑器中的格式选项卡:未加载 plugins/ektron/format/format-plugin.js 并需要添加一个按钮
【发布时间】:2015-06-10 15:12:58
【问题描述】:

使用 Ektron 9.00 SP3

我试图弄清楚为什么 Ektron 的 plugin/ektron/format 插件没有被加载。目标是在 Aloha 编辑器的 Format 选项卡下的 tag 按钮下添加一个缺少的 span 按钮,并添加一个 div 按钮。基本格式插件(在编辑或添加论坛帖子时可以在 Ektron 的 developer.ektron.com 网站上看到)有一个跨度按钮,但我的网站实例没有。我尝试更新 ektron/format/lib/ 下的 format-plugin.js,通过更新配置设置在 span 按钮之前添加一个 div 按钮,在 span 案例之前添加一个 div 案例,并在对应的 i18n.js 文件,但没有显示 div 按钮。

这让我相信 format-plugin.js 没有被加载。使用 Firebug 并将 js 聚合设置为 false,我确认它没有被加载。我还确认 ektron/format 在所有模板的 ektron.cms.framework.ui.config 中,并且 ektron/format 出现在要加载的插件列表中。所以它应该被加载,但它不是。我在 Firebug 控制台上也没有收到任何与 jQuery 或 Aloha 相关的错误。

format-plugin.js 没有加载有什么原因吗?

【问题讨论】:

    标签: ektron aloha-editor


    【解决方案1】:

    该文件可能不再使用。构建跨度按钮的文件是

    /WorkArea/FrameworkUI/js/ektron/Controls/EktronUI/Editor/Aloha/plugins/ektron/general/lib/general-plugin.js

    【讨论】:

    • 我认为我的实例上的 general-plugin.js 似乎不会影响跨度按钮。我查看了代码,但找不到与此相关的任何内容。您指的是/使用哪个版本的 Ektron?
    • 我在看 9.1 SP1。我想它一定已经改变了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-09-16
    • 1970-01-01
    • 2019-12-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多