Questions tagged «plugin-tinymce»

1
在WP 4.5可视编辑器中添加自定义文本模式
4.5已经发布,有了新的文本模式。我想知道如何添加自己的自定义模式。 看一看wp-includes/js/tinymce/plugins/wptextpattern/plugin.js似乎很简单。 var spacePatterns = [ { regExp: /^[*-]\s/, cmd: 'InsertUnorderedList' }, { regExp: /^1[.)]\s/, cmd: 'InsertOrderedList' } ]; var enterPatterns = [ { start: '##', format: 'h2' }, { start: '###', format: 'h3' }, { start: '####', format: 'h4' }, { start: '#####', format: 'h5' }, { start: '######', …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.