Opened 6 years ago

Closed 6 years ago

#11013 closed Bug (invalid)

background : url (images/imagesname.png) not working

Reported by: rushikesh Owned by:
Priority: Normal Milestone:
Component: General Version: 4.2.2
Keywords: Cc: rushikesh.joshi@…

Description

I recently used ckeditor in my site and its does not support "background : url(images/imagename.png)" . It picks up the other css applied in the style tag but doest not takes the background image url specified. I have also tried an alternaive by specifing the image in the background attribute but still does not take that image. Please find an alternative as this and reply.

Change History (1)

comment:1 Changed 6 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

I have just tried:

<p style="background-image: url(http://www.signs.pl/html/p/sm.gif);">text</p>

and it seems to work fine.

One condition is allowing bagkground-image in extraAllowedContent option in ACF or disabling ACF if you want to use all the tags in editor. You can read about ACF here and decide: http://ckeditor.com/blog/Upgrading-to-CKEditor-4.1
http://ckeditor.com/blog/CKEditor-4.1-RC-Released
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
http://docs.ckeditor.com/#!/api/CKEDITOR.filter-method-addTransformations
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy