Opened 13 years ago

Closed 13 years ago

#6930 closed Bug (fixed)

Aligning images does not work

Reported by: Ed Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 3.5
Keywords: Drupal Cc:

Description

I am using CKEditor 3.5 with Drupal 6.20 and CKEditor module 6.x-1.2.

When I insert an image and align it to right using the dialog, the preview displays the aligning properly. However, when I save/publish the page, the image is aligned to left. I have noticed in the source that the style definitions have been removed.

If I hack the code and use the align attribute, the aligning does work.

I have attached a screenshot: on top you see the preview/result, on the bottom, you see the CKEditor section.

Attachments (1)

ckeditorissue.gif (77.0 KB) - added by Ed 13 years ago.
Screenshot of improperly aligned image

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by Ed

Attachment: ckeditorissue.gif added

Screenshot of improperly aligned image

comment:1 Changed 13 years ago by Ed

I think this problem resembles the one described in http://dev.ckeditor.com/ticket/4246.

comment:2 Changed 13 years ago by Garry Yao

Status: newpending

Would you mind to share browser information as well as the content?

comment:3 in reply to:  2 Changed 13 years ago by Ed

Replying to garry.yao:

Would you mind to share browser information as well as the content?

Browser:

IE 8.0.760.16385 (both compatibility on or off) Chrome 7.0.517.41

Which content would you like?

comment:4 Changed 13 years ago by Ed

Resolution: fixed
Status: pendingclosed

The cause of this was that I had 'filtered HTML' as default input format. This strips some CSS tags, particularly the 'style' tag. Solution was to set the input format 'full HTML' as default.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy