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 998 forks source link

Toolbar MouseDown Issue #283

Open virgofx opened 11 years ago

virgofx commented 11 years ago

From /toolbar/toolbar.js

// Needed for opera and chrome
dom.delegate(container, "[data-wysihtml5-command], [data-wysihtml5-action]", "mousedown", function(event) { event.preventDefault(); });

This line causes Firefox browser to not render the ":active" states of the toolbar element. I have removed this line and seen no issues in either Opera or Chrome.

Can anyone comment as to why this hook would need to be here for the mousedown event?

tiff commented 11 years ago

Good question, let me investigate...