[wp-trac] [WordPress Trac] #21145: Switch from HTML to VISUAL mode - does not show anything in Visual mode

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 8 17:16:31 UTC 2012


#21145: Switch from HTML to VISUAL mode - does not show anything in Visual mode
--------------------------+------------------
 Reporter:  selnomeria    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Editor        |     Version:  3.4
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch
 * version:  3.4.1 => 3.4
 * milestone:  Awaiting Review => 3.5


Comment:

 Version number indicates when the bug was initially introduced/reported.

 I could not reproduce the original bug from the description. This content
 is preserved when switching from Visual to HTML (Text) mode:
 {{{
  

 <iframe src="http://trunk.wordpress/" width="320" height="240"></iframe>
 }}}
 `<href>` is not a valid tag, so I've excluded it from the test.

 Replying to [comment:1 mati1000]:
 > Uncaught TypeError: Cannot read property '0' of null /wp-
 includes/js/tinymce/plugins/wpeditimage/editor_plugin.js?ver=349-20805:1
 Char: 2392

 The error corresponds to line 145, introduced in [19982]: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
 includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js#L144

 I can only reproduce this if I manually remove the `id` attribute from the
 `[caption]` shortcode. It should be there by default. If it's not in your
 case, your theme or some plugin might interfere with captions.

 We should probably check if `match()` was successful though
 ([attachment:21145.patch]), since the errors due to missing attributes
 also cause both editors to be rendered at the same time
 ([attachment:21145.overlapping.png]).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21145#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list