0

我有html:

<div class='editable' id="a"><img src='./test.jpg'></img></div>
<div class='editable' id="b"><img src='./test1.jpg'></img></div>

我想为两个 div 附加 aloha 编辑器,但只为其中一个添加图像插件。我尝试了很多。搜索了很多。有人可以帮我吗?

4

1 回答 1

0

根据指南,这个配置应该是可能的(http://aloha-editor.org/guides/plugin_image.html

   Aloha.settings.plugins.image: {
        config: [ 'img' ], // enable the plugin
        editables: {
            '#my-editable': [ ] // disable the plugin for the editable with ID my-editable
        }
    }

但这已损坏并且无法按预期工作-我进行了错误修复并在 github 上提交了拉取请求,您可以在此处查看我的修复: https ://github.com/alohaeditor/Aloha-Editor/pull/1164

于 2014-04-18T14:48:16.427 回答