[wp-trac] [WordPress Trac] #45062: tinyMCE editor breaks captions with HTML

WordPress Trac noreply at wordpress.org
Thu Dec 19 14:27:08 UTC 2019


#45062: tinyMCE editor breaks captions with HTML
--------------------------+------------------------------
 Reporter:  iantresman    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  4.9.8
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> This looks similar to ticket
> [https://core.trac.wordpress.org/ticket/18311 #18311]
>
> If I enter HTML into an image caption (eg. <ul> <span> <div> <table>, and
> then in tinyMCE I switch from Text to Visual, my caption breaks;
> sometimes it is reformmatted, sometimes the caption shortcode is removed.
>
> Test caption:[[br]]
> <table>[[br]]
> <tr><td>Label</td><td>Description</td></tr>[[br]]
> <tr><td><span>Text</span></td><td>More text</td></tr>[[br]]
> </table>

New description:

 This looks similar to ticket #18311

 If I enter HTML into an image caption (eg. <ul> <span> <div> <table>, and
 then in tinyMCE I switch from Text to Visual, my caption breaks; sometimes
 it is reformmatted, sometimes the caption shortcode is removed.

 Test caption:[[br]]
 <table>[[br]]
 <tr><td>Label</td><td>Description</td></tr>[[br]]
 <tr><td><span>Text</span></td><td>More text</td></tr>[[br]]
 </table>

--

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


More information about the wp-trac mailing list