ucsf-web-services / ucsf_webedit

GNU General Public License v2.0
3 stars 5 forks source link

Webedit strips inline styles #32

Open Prugh opened 9 years ago

Prugh commented 9 years ago

Webedit seems to not respect inline styles, for example when setting width properties on tables through the editor. Is this intentional?

stopfstedt commented 9 years ago

@Prugh as far as I know this is indeed intentional. The idea is that styles are provided via stylesheets.

erykmynn commented 9 years ago

I want to double-check, are we talking about with as a style? Or width as an attribute? Or both?

Style attribute should not be allowed.

Prugh commented 9 years ago

If a user adds a table via webedit and then uses table properties (right click on table) to set the width - an inline style of that width is added to the table, but then stripped out when saved. So you see the correct width in edit mode but not in view mode. This is confusing because the option to set this is available.