TinyMCE: add wptextpattern plugin

This plugin can automatically format text patterns as you type. It includes two patterns: unordered (`* ` and `- `) and ordered list (`1. ` and `1) `). If the transformation in unwanted, the user can undo the change by pressing backspace, using the undo shortcut, or the undo button in the toolbar.

This is the first TinyMCE plugin that has unit tests and there's some good groundwork for adding tests to existing plugins in the future.

First run. See #31441.


git-svn-id: https://develop.svn.wordpress.org/trunk@32699 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ella Iseulde Van Dorpe
2015-06-06 20:07:00 +00:00
parent 66f327cff2
commit 5bac5f7ccd
5 changed files with 273 additions and 18 deletions

View File

@@ -368,7 +368,8 @@ final class _WP_Editors {
'wpgallery',
'wplink',
'wpdialogs',
'wpview',
'wptextpattern',
'wpview'
);
if ( ! self::$has_medialib ) {