[wp-trac] [WordPress Trac] #27907: Shortcode double brackerts ending on newline breaks

WordPress Trac noreply at wordpress.org
Fri Apr 18 21:47:11 UTC 2014


#27907: Shortcode double brackerts ending on newline breaks
----------------------------+-----------------------------
 Reporter:  Clorith         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  TinyMCE         |    Version:  3.9
 Severity:  major           |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 When showing off a shortcode you for example by use of `[[gallery]]`, the
 post editor breaks if you do the final `]` on a new line.

 A quick typo can result in this. By updating or publishing the post in
 this state the editor appears blank, you can see an extended bit of HTML
 in Text view, but the visual editor remains blank.

 Changes made in the visual editor will not be saved, the post is
 essentially "broken" at this point.

 JS error causing it `Uncaught TypeError: Cannot call method 'slice' of
 undefined` found in `shortcode.js` on Line 40.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27907>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list