如何在Aloha编辑器中向工具栏添加删除线按钮?

时间:2012-12-27 18:22:38

标签: aloha-editor

我能够添加下划线的“你”;但是我无法添加删除线“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>

1 个答案:

答案 0 :(得分:0)

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

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