taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

align options allow to inject css #185

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. select a text
2. align it to center
3. see the output

What is the expected output? What do you see instead?

it returns <div style="text-align: center">foo</div> so I would have to 
allow the "style" attribute on my app and then one could inject css (which 
is not safe)

it would be better if it aligns the text with css (not inline css) or at 
least you could add a class to the div so I can remove the "style" and 
align it with css on my app.

thanks in advance

Original issue reported on code.google.com by kra...@gmail.com on 19 May 2010 at 6:42