[wp-trac] [WordPress Trac] #27185: [[gallery]] not supported by editor

WordPress Trac noreply at wordpress.org
Sat Feb 22 16:50:08 UTC 2014


#27185: [[gallery]] not supported by editor
--------------------------+-----------------------------------------
 Reporter:  wpweaver      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.8.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Old description:

> Unlike other shortcode descriptions included in a page/post using the
> [[[[shortcode]]]] double [[[[ ... ]]]] convention to enable displaying
> the shortcode name in a post instead of the results, [[[[gallery]]]]
> does not work. The editor insists on detecting [[[[gallery]]]] as a
> reference to the gallery for the special display treatment. This makes it
> nearly impossible to write a post about the gallery shortcode.
>
> I have not checked, but this may apply to other special case shortcodes
> (like images inserted via shortcodes from the media library), but it
> could be a general failure of TinyMCE to follow the [[[[shortcode]]]]
> convention for shortcodes that get special treatment by the editor.
>
> Sorry about the issues with using [[[[ and ]]]] - I couldn't find any way
> to escape the square brackets correctly.

New description:

 Unlike other shortcode descriptions included in a page/post using the
 `[[shortcode]]` double `[[ ... ]]` convention to enable displaying the
 shortcode name in a post instead of the results, `[[gallery]]` does not
 work. The editor insists on detecting `[[gallery]]` as a reference to the
 gallery for the special display treatment. This makes it nearly impossible
 to write a post about the gallery shortcode.

 I have not checked, but this may apply to other special case shortcodes
 (like images inserted via shortcodes from the media library), but it could
 be a general failure of TinyMCE to follow the `[[shortcode]]` convention
 for shortcodes that get special treatment by the editor.

 Sorry about the issues with using `[[` and `]]` - I couldn't find any way
 to escape the square brackets correctly.

--

Comment (by ocean90):

 > Sorry about the issues with using `[[` and `]]` - I couldn't find any
 way to escape the square brackets correctly.

 Fixed this by using the backtick `.

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


More information about the wp-trac mailing list