Jump to content

Prestashop 1.6.x deletes 'background-size' css property in source HTML.


Recommended Posts

Prestashop 1.6.1.18 tinyMCE editor removes some css inline properties from HTML source code in product description.

No matter if it is short or long description, custom theme or default-bootstrap theme?

For instance while saveing product description property "background-size: auto 100%; " is deleted from HTML source code.

Could someone possibly tell me why?!!

Is there validation process that deletes css property ?

There is example here ( having saved HTML code I have lost "background-size" property) :

<!-- Input HTML: -->
<div style=" margin: 0 0 18px 0;
            background-image: url('Thumb-Orange.jpg');
            background-repeat: no-repeat;
            background-position: left top;
            background-size: auto 100%;
            padding: 35px 30px 35px 20px;
            font-family: georgia, palatino;
            font-style: italic;
            letter-spacing: 4px;">
  <p>description</p>
  <ul>
  <li>feature no1</li>
  </ul>
</div>

<!-- Output HTML: -->
<div style=" margin:0 0 18px 0;
            background-image:url(&quot;Thumb-Orange.jpg&quot;);
            background-repeat:no-repeat;
            background-position:left top;
            padding:35px 30px 35px 20px;
            font-family:georgia, palatino;
            font-style:italic;
            letter-spacing:4px;">
  <p>description</p>
  <ul>
  <li>feature no1</li>
  </ul>
</div>

 

- Input: -->

a

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...