#36890 closed enhancement (fixed)
TinyMCE: add settings for the wptextpatterns plugin to add or override the default text patterns
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
Continues from #33300.
Currently a WordPress plugin has to replace the whole wptextpattern
editor plugin to add or change the text patterns. It would be better to let the patterns be changed by setting an editor option in the init array.
Attachments (1)
Change History (6)
This ticket was mentioned in Slack in #core-editor by mrwweb. View the logs.
9 years ago
#3
@
8 years ago
We added this in [39075]. :) The question now is if we should add methods to add and remove patterns more easily and/or if we should add any PHP filters just for this. At the moment you can only replace the settings.
Note: See
TracTickets for help on using
tickets.
36890.patch is almost identical to https://core.trac.wordpress.org/attachment/ticket/33300/33300.6.patch. It adds editor settings to add or override the default text patterns.
Example: