tiff / wysihtml5

Open source rich text editor based on HTML5 and the progressive-enhancement approach. Uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.
http://xing.github.com/wysihtml5/
MIT License
6.48k stars 995 forks source link

font-weight inline style attribute on iframe interfering with bold text #477

Open joshuaborn opened 10 years ago

joshuaborn commented 10 years ago

The plugin puts a font-weight inline style attribute on the iframes that have class wysihtml5-sandbox. In the case of our app, it puts a "font-weight: 300" on there. The result is that on Firefox and IE, bold text does not appear as bold in the wysihtml5 editor. Removing font-weight from the TEXT_FORMATTING list appears to fix this.

inyerade commented 8 years ago

I have the same problem.

But is there any solution without change the gem code?