[wp-trac] [WordPress Trac] #34371: Allow Filtering of TinyMCE charmap / Special Characters

WordPress Trac noreply at wordpress.org
Tue Oct 20 18:23:43 UTC 2015


#34371: Allow Filtering of TinyMCE charmap / Special Characters
-----------------------------+------------------------------
 Reporter:  mrwweb           |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  TinyMCE          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by mrwweb):

 @swissspidy Yeah. The implementation details have me a little confused,
 I'll admit. I've searched at length and have never found anyone describing
 a JS way to modify the charmap, in WP or out.

 Would this work?

 - WordPress creates its own charmap array in PHP. (Probably just based on
 the current charmap plugin one)
 - Adds filter for PHP array.
 - Takes that array and sticks it into `/wp-
 includes/js/tinymce/plugins/charmap/plugin.js` with `wp_localize_script()`

 This is probably the equivalent to "hacking core" in TinyMCE, since it
 requires modification of what I assume is the stock TinyMCE plugin file,
 so I don't know the implications for that in terms of future updates to
 TinyMCE.

 But having said all that, it really would be helpful in a whole bunch of
 situations I know and probably even more that I don't.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34371#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list