[wp-trac] [WordPress Trac] #23103: Non image caption shortcode lost when switching from text to visual editor and back
WordPress Trac
noreply at wordpress.org
Mon Feb 3 01:24:45 UTC 2014
#23103: Non image caption shortcode lost when switching from text to visual editor
and back
--------------------------+-------------------------
Reporter: mark-k | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Editor | Version: 3.4
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
--------------------------+-------------------------
Changes (by azaozz):
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
The caption shortcode is specifically for adding captions to images. If no
image exists the shortcode is removed. Removing it works as expected now,
doesn't leave behind any html tags.
> If you have a normal captioned image, but remove the width ...
Yes, the captions require the width attribute. We probably can recreate
the caption width from the image tag `width`, but don't see why the width
was removed from the caption in the first place.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23103#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list