0

假设您只想在 Aloha 工具栏中允许 h3、h4、h5 和 h6,而不显示 h1、h2、h3。这样做的设置是什么?

4

1 回答 1

1
Aloha.settings.plugins.format = {
// configure buttons available in the toolbar
// this example enables all buttons available
config : [ 'strong', 'em', 'b', 'i', 'del', 'sub', 'sup', 'p', 'h4', 'h5', 'h6', 'pre', 'removeFormat'],
// specific configuration for each editable identified by css selectors
editables : {
    // the editable with id "teaser" won't offer any formatting options
    '#teaser'   : [  ]
},
// those are the tags that will be cleaned when clicking "remove formatting"
// this example resembles the default configuration
removeFormats : [ 'strong', 'em', 'b', 'i', 's', 'cite', 'q', 'code', 'abbr', 'del', 'sub', 'sup']

};

https://github.com/alohaeditor/Aloha-Editor/issues/931#issuecomment-18775515

于 2013-06-03T11:43:42.350 回答