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.49k stars 995 forks source link

fontSize uses hardcoded classes. #523

Open newjam opened 9 years ago

newjam commented 9 years ago

the fontSize command generates this html:

<span class="wysiwyg-font-size-x-small">text</span>

it's pretty annoying that the class is hardcoded 'wysiwyg-font-size-x-small'.

In my application, this generated html is going to be used in multiple places outside of the wysihtml5 textbox.

I think it is inelegant to have to include stylesheets with 'wysiwyg-font-size-x-small' selectors on all other pages/sites/applications where this html will be rendered because they shouldn't have any knowledge of the text editor that generated it.

Is there a way to do what I want in the existing system?