Opened 11 years ago
Last modified 9 years ago
#11199 confirmed Bug
[Image2, ACF] Content of figcaption remain once the tag is stripped out in a widget
Reported by: | Olek Nowodziński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.3 Beta |
Keywords: | Cc: |
Description (last modified by )
Problem: If user explicitly disallows figcaption
in ACF, figures are upcasted but the contents of (just stripped out) figcaption remain as a plain, non-editable paragraph within widget's body.
Expected: Once figcaption
is disallowed, its contents should be removed from the widget. Such widget should be upcasted either to an inline widget or a block widget without caption (to be decided).
Change History (3)
comment:1 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 11 years ago by
comment:3 Changed 9 years ago by
Status: | new → confirmed |
---|
To reproduce:
- Use below configuration:
CKEDITOR.replace( 'editor1', { disallowedContent : 'figcaption', extraPlugins : 'image2' });
- Switch to source, paste below code and switch to wysiwyg:
<figure class="image right"><img alt="Saturn V carrying Apollo 11" src="assets/sample.jpg" /> <figcaption>Podpis</figcaption> </figure>
NOTE: disallowing figcaption disables ability to create image with signature from image2 dialog.
cc