Opened 9 years ago
Closed 9 years ago
#33477 closed defect (bug) (fixed)
TinyMCE: image caption break if the user changes the "Block format"
Reported by: | azaozz | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
To reproduce:
- Select an image that has a caption.
- Change the Block format (the drop-down on the second toolbar row) to <p>, <h1>, <h2>, etc.
Happens because the caption "wrapper tag" is changed. This is generally a user error, but we can try to correct it.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 33477.patch: when converting images with captions from HTML elements to shortcodes, make the wrapper div optional.
This div is a left over. Still there for back-compat. It was used to make it possible to center images with captions in old IE where centering of block elements in contentEditable is broken.