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 1k forks source link

Can't escape out of blockquotes with return #274

Open mattkenefick opened 11 years ago

mattkenefick commented 11 years ago

Often in WYSIWYG editors, if you're in a blockquote, you can return twice to escape it similar to how you'd escape a list item. Doesn't seem to take effect in this.

Anyone else experience this?

zrod commented 11 years ago

Yes, not only with blockquotes but with pre and code as well (actually with any multi-line tag).

mattkenefick commented 11 years ago

Anyone have clever resolutions?

theseanz commented 11 years ago

Anyone have any luck with this? I'm struggling with it right now.

mattkenefick commented 11 years ago

I added a few commits to this forked branch a little while ago. https://github.com/percolate/wysihtml5/commits/master

It used RegEx to figure out if it should let you out. As I recall, it worked pretty well across browsers. Give it a shot.