0

我能够添加带下划线的“u”;但我无法添加删除线“del”。

<script type="text/javascript" src="https://cdn.aloha-editor.org/latest/lib/require.js"></script>
<script src="https://cdn.aloha-editor.org/latest/lib/aloha.js" data-aloha-plugins="common/characterpicker,common/format,common/link,common/list,common/paste,common/undo,extra/formatlesspaste"></script>
<link href="https://cdn.aloha-editor.org/latest/css/aloha.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

var Aloha = window.Aloha || ( window.Aloha = {} );

Aloha.settings = {
    plugins: {
        format: { config : [ "strong", "em" ,"u","del", "s", "p", "h1", "h2", "h3", "h4", "h5", "h6", "pre", "removeFormat"] }
    },
    sidebar: { disabled: true }
};

Aloha.ready( function() {
    Aloha.jQuery(".editable").aloha();
});
</script>
4

1 回答 1

0

需要在加载/包含 aloha.js 文件之前完成配置 (Aloha.settings = ...)。

参考:https ://getsatisfaction.com/aloha_editor/topics/strikethrough_button_missing_from_toolbar

于 2013-01-09T12:09:24.840 回答