1
我打算將dir:left
添加到code
標籤。將屬性添加到tinymce格式
<code dir="left">my inline code </code>
我知道from here如何添加風格自定義格式,但我需要這個屬性(未樣式)添加到所有code
標籤
我打算將dir:left
添加到code
標籤。將屬性添加到tinymce格式
<code dir="left">my inline code </code>
我知道from here如何添加風格自定義格式,但我需要這個屬性(未樣式)添加到所有code
標籤
ok.i發現了它。只需要創建一個新的tinymce插件:
tinymce.PluginManager.add('stylebuttons', function (editor, url) {
....
onClick: function() {
....
tinymce.activeEditor.dom.setAttrib(tinyMCE.activeEditor.dom.select('code'), 'dir', 'left');
},
}