Open blucayzer opened 1 month ago
Yes, this is a standard behavior. As inline images are not a "block" wrapped in figure
, they cannot contain captions (figcaption
)
ok! Understood now. Thanks for the update.
Reopening this thread again as I have more further questions.
There is a use case where the tag is inconsistent for "wrap-text". 1.) have an image and has a style of "Break-text".
2.)then change the style of the image to "wrap-text" and check in the Source Editing that the HTML tag of the image is "Figure".
3.) Change the style to "in-line".
4.) Then Change the style back to "wrap-text"
Questions:
1.) With the reproduction steps above, why does the HTML tag of "Wrap-text" became <p>
instead of <figure>
when it is first at <figure>
.
2.) Is there a way on having a caption on the image if the style is in "in-line"?
📝 Ask a question
What is your question? Please be as specific as possible to help us understand it.
In changing the style of the image, to "inline", "wrap-text" or "break-text".
In Source Editing, the HTML tags of the image with "wrap-text" and "break-text" is a. Shown in the screenshot below.
Editor View:
![image](https://github.com/user-attachments/assets/8291a4da-b8fa-4561-b790-376ad0134813)
Source Editing Mode:![image](https://github.com/user-attachments/assets/70ba4467-c1fa-4133-890f-488d6c6108e2)
But in "Inline" style, the HTML tag of the image is
. Shown in the screenshot below. Editor View:![image](https://github.com/user-attachments/assets/28632047-e227-4b61-8ac2-5904b702e725)
Source Editing Mode:![image](https://github.com/user-attachments/assets/b164d6c8-7298-4d7b-91a1-f549ae6f2cdd)
The question is, is this the intended behavior of the "inline" style? or is it a bug?
This behavior was seen where I was testing the caption images in CKEditor.
If I have an image with a caption having a style of "wrap-text".![image](https://github.com/user-attachments/assets/fb55c37e-26c7-4179-bf46-6ad50ea0b8ff)
Then I converted it to "inline", the caption was removed.![image](https://github.com/user-attachments/assets/ef8c8914-4336-48fe-9467-86a9d197b673)