350dotorg / localpower

Web platform and social network for mapping and connecting distributed communities around collaborative actions.
http://350.org
Other
6 stars 2 forks source link

Using WYSIWYG Over-rides default formatting/CSS #87

Open jwarnow opened 13 years ago

jwarnow commented 13 years ago

For example: http://groups.350.org/projects/screening/

We should preserve it if possible.

ejucovy commented 13 years ago

Ugh, this is a tricky one, because I believe the WYSIWYG isn't technically at fault. It looks like the browser is being more clever than we want, and inserting styles and markup when you are using the admin edit (or creation) form -- which the WYSIWYG then doesn't know to strip out (because it can't tell what styles the browser is tossing in vs the ones you intend)

I hand-edited the HTML for the "movie screening" project that you put in -- tossed out all the spans and divs, and all the inline CSS styles, and made sure the only markup in there was H2s, H3s, P tags, and UL/LI tags. It now looks consistent. But, even trying to copy and paste it from that form into a new project's form through the WYSIWYG doesn't work so well. So I may have to recommend going through the raw HTML editor and just using the WYSIWYG for previewing the result.

jwarnow commented 13 years ago

That's fine -- we'll just use another WYSIWYG and copy/paste the clean HTML into the raw HMTL editor...

-jw-

On Fri, Sep 16, 2011 at 7:44 PM, ejucovy < reply@reply.github.com>wrote:

Ugh, this is a tricky one, because I believe the WYSIWYG isn't technically at fault. It looks like the browser is being more clever than we want, and inserting styles and markup when you are using the admin edit (or creation) form -- which the WYSIWYG then doesn't know to strip out (because it can't tell what styles the browser is tossing in vs the ones you intend)

I hand-edited the HTML for the "movie screening" project that you put in -- tossed out all the spans and divs, and all the inline CSS styles, and made sure the only markup in there was H2s, H3s, P tags, and UL/LI tags. It now looks consistent. But, even trying to copy and paste it from that form into a new project's form through the WYSIWYG doesn't work so well. So I may have to recommend going through the raw HTML editor and just using the WYSIWYG for previewing the result.

Reply to this email directly or view it on GitHub: https://github.com/350org/localpower/issues/87#issuecomment-2120654