Text editor doesn't render background-image inline style attribute
-
Hello,
and first of all thank you so much for your work on wc vendors, it’s a true great plugin! kudos!I’m sorry to disturb with that issue but I searched all this afternoon and didn’t find a fix:
I encountered that issue with the text editor called trough wc vendors in users profiles :Trying to make some custom html formatting in the shop description, I add a div tag with a class and a background-image. when I save and update the page, it doesn’t show the background-image, just like if there weren’t any style attribute. I tried with background-color and it worked, I can’t get why not with an image…
When I add the style attribute through a debug tool in my browser (firebug), the whole style works so I guess there’s no problem with my code… here it is BTW (the image is huge and I use CSS to adjust it) :
<div class=”img-header-vendor” style=”background-image: url(‘https://upload.wikimedia.org/wikipedia/commons/1/14/Panorama_puy_de_dome_sud.jpg’); overflow: auto; background-repeat: no-repeat;”>test content</div>
I can’t use CSS to add this background image because I need it to be included in the custom piece of content each vendor has trough wc vendors on his shop … I need the background image to be custom…
Using the Tinymce, the code remains and is not deleted or altered in the backend, it’s just the frontend doesn’t render it…
I really am lost here and to be honest I’m not a developer so I need your help so bad!
Thank you so much in advance and have a great day,
Emilien
- The topic ‘Text editor doesn't render background-image inline style attribute’ is closed to new replies.