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

Ctrl+A and line break on IE #484

Open m0x72 opened 10 years ago

m0x72 commented 10 years ago

Hey there,

after selecting and deleting all text inside the editor with Ctrl+A, line breaks will get messed up on (seemingly) all IE Versions. (Tested on IE11, and "emualted" IE 10, 9 and 8 versions via Dev Tools)

On subsequent typing, pressing enter will cause new paragraphs instead of line breaks ( br ). Selecting and deleting the (visible) text with the mouse or shift + arrow keys works just as expected.

Can someone reproduce/confirm that?

(Ctrl+A works fine in Chrome/Firefox of course ;) )

mrkipling commented 10 years ago

I can replicate this in IE11. However it is worth pointing out that it does not occur in IE8-11, at least not for me when testing using the actual installed versions in a VM. Emulation mode is pretty unreliable so that could be why you were able to replicate it in emulated mode, @m0x72.

Also worth pointing out is that this project doesn't appear to be maintained any more, so this probably won't achieve much.

m0x72 commented 10 years ago

Thanks for testing either way though @mrkipling! Good to know.

mrkipling commented 10 years ago

Not a problem. I actually stumbled across this after doing battle with WYSIHTML5 for the best part of a week.

I've seen things. Terrible things...

m0x72 commented 10 years ago

Hahaha, brave man! :+1: