Alignment and adding a caption to an image embedded via ckeditor doesn't seem to be working.

Steps to replicate.

Tested via simplytest.me using 8.0.x dev

Create an article.
Add image using wysiwyg button,
Upload image
Select Right alignment
Tick caption box
Save.

CommentFileSizeAuthor
#4 manual-edit.png123.36 KBkattekrab
image-align-caption.png413.56 KBkattekrab
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kattekrab created an issue. See original summary.

pameeela’s picture

I'm seeing the same, both on dev branch and beta-14. When I click save, nothing happens, and when I edit the image again the settings are gone.

If I am doing something wrong I would love to know what it is!

jibran’s picture

Can you try adding data-caption and data-align to the source manually something like this <img data-caption="text here" and data-align="center"/>?

kattekrab’s picture

FileSize
123.36 KB

Yep - and that works!

Wim Leers’s picture

kattekrab’s picture

Thanks Wim.

tanmayk’s picture

Version: 8.0.x-dev » 8.6.2
Status: Closed (duplicate) » Active

As #2540850: (regression) EditorImageDialog alignment & captioning are not working is fixed, I am still seeing this issue in 8.6.2. Was not sure where to comment so reopened this.

Updating inline code to add data-caption & data-align is not really good option for end users who don't know about HTML at all :)

zezeze’s picture

I

Wim Leers’s picture

Status: Active » Closed (duplicate)

Please do not reopen 3.5 year old issues. Please create a new issue instead. Thanks.