SnippetMaster Support Forums
Return to main website
 
June 26, 2015, 09:16:24 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 26, 2015, 09:16:24 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Table Background Image « previous next »
Pages: [1] Print
Author Topic: Table Background Image  (Read 861 times)
Bandicoot

Posts: 14


WWW
[-] Table Background Image
« on: April 08, 2013, 03:35:48 AM »

I am trying to insert an image as a background for a table.

The snippet code area has all the tags for the table available to the user.

When a user chooses an uploaded image the code inserted is:

Code:
background-image: url('"bg.jpg"')

The image shows in the editor, but the code is stripped on Save.

Changing it to either of these, just makes things worse:

Code:
background-image: url('bg.jpg')

background-image: url("bg.jpg")

The only thing that works is:

Code:
background="bg.jpg"

While this is simple for me, it can be daunting for someone using WYSIWYG.

Does anyone know how to fix this problem? Maybe an entry in one of TinyMCE's configuration files?
Report to moderator   Logged
wpatters1229

Posts: 20


[-] Re: Table Background Image
« Reply #1 on: March 07, 2014, 03:27:45 PM »

I have the same problem with coding in a page where the div tag has a background-image style and the url(nameofimage.jpg) gets altered with garbage code.  The editor should not alter the html good or bad.  Leave it as is and if you are using the visual editor is should be CSS valid.

Does anyone know how to fix the tinymce so it will not validate html or clean the code?
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Table Background Image « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!