Opened 10 years ago
Last modified 10 years ago
#13157 confirmed Bug
Enhanced Image plugin alignClasses don't work when image assigned a link
Reported by: | Nicholas Wright | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.4.0 |
Keywords: | Cc: |
Description
I've managed to reproduce this bug with the latest nightly build, as follows:
- Download the nightly build.
- Download and include the following plugin:
- Download an include the additional required plugins:
- Add the following to config.js:
config.extraPlugins = 'lineutils'; config.extraPlugins = 'widget'; config.extraPlugins = 'image2'; config.image2_alignClasses = [ 'text-editor-image-left', 'text-editor-image-center', 'text-editor-image-right' ];
- Add the following to content.css:
.text-editor-image-left {
float: left; margin-right: 10px;
} .text-editor-image-right {
float: right;
margin-left: 10px;
}
- Open one of the samples: Desktop/ckeditor/samples/replacebyclass.html
- Double click an image to open the dialog and select Alignment: Right
- The image floats to the right.
- Toggle Source mode on/off
- The image remains floated to the right.
- Select the image and click the Link icon, and add a URL.
- The image remains floated right.
- Toggle the Source mode on/off.
- The image loses its float right.
- If you view source mode you'll see that the image is still assigned the correct class, it's just not being detected.
- If you double click the image to open the dialog the Alignment: Right option is NOT selected.
Attachments (2)
Change History (3)
comment:1 Changed 10 years ago by
Keywords: | image2 Enhanced Image alignClasses removed |
---|---|
Status: | new → confirmed |
Version: | 4.4.8 (GitHub - master) → 4.4.0 |
Changed 10 years ago by
Attachment: | image2.html added |
---|
Changed 10 years ago by
Attachment: | contents2.css added |
---|
Problem can be reproduced from CKEditor 4.4.
When using
style="float:right;"
it is copied to wrapping span. When, on the other hand using, classes liketext-editor-image-right
and switching to source and back (initially class is there) they are not copied to wrapping span and only kept on the image.