Opened 10 years ago

Closed 10 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@…


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 10 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

I have just tried:

<p style="background-image: url(;">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:!/guide/dev_advanced_content_filter!/api/CKEDITOR.filter-method-addTransformations!/api/CKEDITOR.config-cfg-allowedContent!/api/CKEDITOR.config-cfg-extraAllowedContent

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