[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
Fri Jan 27 04:46:46 UTC 2017
#35638: Cutting and pasting an image with a caption within the same post will
result in loss of caption.
--------------------------+--------------------
Reporter: rothschild86 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: TinyMCE | Version: 4.4.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+--------------------
Changes (by azaozz):
* component: Editor => TinyMCE
* milestone: Awaiting Review => 4.8
Comment:
Replying to [comment:2 rianrietveld]:
It's (mostly) a bug :)
The problem is that the "wrapper tag" for the image with caption has to be
selected and copied. Then it will retain the caption. Same for dragging it
to the desired place inside the editor.
There is a workaround: click on the image, then look at the bottom of the
editor at the "element path" (to see it you need to open the second
toolbar row). It should look like:
{{{
div » dl » dt » img
}}}
Clicking on the `div` will select everything. Then copy and paste.
Can try to improve this. If it is non-editable, clicking on the image
should select the wrapper tags too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35638#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list