[wp-trac] [WordPress Trac] #35638: Cutting and pasting an image with a caption within the same post will result in loss of caption.

WordPress Trac noreply at wordpress.org
Tue Jul 2 14:33:16 UTC 2019


#35638: Cutting and pasting an image with a caption within the same post will
result in loss of caption.
--------------------------+-------------------------
 Reporter:  rothschild86  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  TinyMCE       |     Version:  4.4.1
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+-------------------------
Changes (by azaozz):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Future Release =>


Comment:

 Don't see a straightforward way to fix this. Trying to (artificially)
 extend the selection to include the wrapper element results in other bugs,
 for example not being able to edit the caption text. It's not possible to
 extend the selection on copy or drag, too late. The only way I see would
 be to leave a "placeholder" in the old location of the image after copying
 or dragging, then let the user paste or finish dragging and drop the
 image, and then to delete the content that was pasted or dropped and
 select and move the actual image together with the caption. Unfortunately
 that is pretty buggy too.

 Seems the best way is to make sure the wrapper div is selected before
 copying, as mentioned above.

 Closing as worksforme as there is a workaround. Feel free to reopen with
 other ideas about how to make this better.

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


More information about the wp-trac mailing list