mindmup / bootstrap-wysiwyg

Tiny bootstrap-compatible WISWYG rich text editor
MIT License
5.56k stars 841 forks source link

Fix for IE not understanding commands with parameters #125

Open damienwhaley opened 10 years ago

damienwhaley commented 10 years ago

I found that IE does not understand commands with parameters (such as "fontSize 3").

This fix strips off any parameters and also does a check to make sure the browser supports the command before it tries to query the state of the command.

This is a little more generic than some of the other issue solutions which were only looking at fixing specific command problems.