Jump to content

Recommended Posts

Posted

On ProcessPageEditImageSelect module you can check "Skip width attributes on images tag". When I insert the image (CKEditor) width tag is still there, like width="1300" (image is 1300 px wide). After page is saved width tag is stil there, but it is width="1200". Where is 1200 coming from? Is it possible to use the old module (without all of this options that might be confusing)? Testing on PW 2.5.25 dev. 

  • 5 months later...
Posted

Hi matjazp

A late answer to your question.

I came across the same issue as you. I wanted to set the width attribute of my images to 1280. But what I found was that CKEditor has a maximum allowable value for the width attribute. And that maximum value is 1200 pixels.

If you go to:

wire/modules/Markup/MarkupHTMLPurifier/htmlpurifier/standalone/HTMLPurifier/ConfigSchema/schema.ser

There look for this bit... "HTML.MaxImgLength";i:1200

Change 1200 to your desired maximum value.

Worked for me at least!

Hope that helps

Regards

Zahari M.

  • Like 3

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...