localwiki / localwiki-backend-server

Primary LocalWiki backend server environment
GNU General Public License v2.0
48 stars 16 forks source link

Copy & pasting an image sometimes results in bad image height #73

Open philipn opened 9 years ago

philipn commented 9 years ago

"Looks like when I copy and paste images using the page editor, it automatically adds the "height: auto!important;" attribute."

Not sure what browser, but we don't whitelist 'height: auto' so this results in a non-rendering image.

Possible fixes:

  1. Fix the whitelist to accept height: auto style on image tags.
  2. Fix the copy & paste buffer to capture the correct image height rather than sub "height: auto!important"