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 エディターをアタッチしたいのですが、そのうちの 1 つだけに画像プラグインを使用します。

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 に答える