[wp-trac] [WordPress Trac] #31924: Use add_theme_support( 'more-tag' ) to control display of More Tag button in TinyMCE

WordPress Trac noreply at wordpress.org
Wed Apr 8 11:26:25 UTC 2015


#31924: Use add_theme_support( 'more-tag' ) to control display of More Tag button
in TinyMCE
-------------------------+------------------------------
 Reporter:  mrwweb       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  template
-------------------------+------------------------------
Changes (by ramiy):

 * focuses:   => template
 * component:  General => Themes


Comment:

 If anything, I would suggest a more comprehensive solution - using
 `add_theme_support( 'editor-tags' )` for different kind of tags.

 {{{
 $args = array(
    '<!--more-->'     = true,
    '<!-–nextpage-–>' = true,
 );
 add_theme_support( 'editor-tags', $args );
 }}}

 By default they will be enabled, and theme authors can disable those tags
 if they are not in use.

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


More information about the wp-trac mailing list