[wp-trac] [WordPress Trac] #33300: More text patterns

WordPress Trac noreply at wordpress.org
Wed Dec 30 22:59:52 UTC 2015


#33300: More text patterns
--------------------------------------+-----------------------------
 Reporter:  iseulde                   |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  TinyMCE                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:  javascript
--------------------------------------+-----------------------------

Comment (by jeremyclarke):

 +1 for a horizontal rule text pattern, though I guess now it's
 semantically called a "thematic break":

 >In previous versions of HTML, it represented a horizontal rule. It may
 still be displayed as a horizontal rule in visual browsers, but is now
 defined in semantic terms, rather than presentational terms.
 >https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr

 Also definitely +1 for a PHP API to add new patterns if possible. I'm
 still looking to see if there is one but this ticket implies it doesn't
 exist yet.

 I was hoping for something like `add_text_pattern()` and
 `remove_text_pattern()`, but even a guide similar to this one (about
 filtering `tiny_mce_before_init` to insert custom formats) would be super
 useful.

 https://codex.wordpress.org/TinyMCE_Custom_Styles

 Personally I want to add shortcuts for `code` and for our custom
 `blockquote.translation` blocks.

 Related: http://wordpress.stackexchange.com/questions/213330/how-
 can-i-register-a-custom-text-pattern-wp-4-3-for-tinymce

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


More information about the wp-trac mailing list