bergie / hallo

Simple rich text editor (contentEditable) for jQuery UI

Home Page:http://hallojs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pressing ESC in a hallo editor has very strange side effects, breaks content

DanielSmedegaardBuus opened this issue · comments

Hi :)

I'm having some serious issues with the ESC key when inside a Hallo editor textarea. I have a lot of editors on this page, and pressing ESC inside an editor will do a number of things; break layout of a Facebook like button inside the content, reposition the caret to top-left or near top-left, and sometimes revert content to an older version.

It's super strange. I have a couple of overlay windows for my own plugins, and pressing ESC while one of these is open will also destroy the contents of the hallo editor that was last open.

Latest Chrome, Mac OS X Lion.

For me pressing esc clears the entire contenteditable.

The workaround I use is .off( 'keyup' ) on the jQuery element that has Hallo enabled. This disables the toolbar undo functionality, but it's broken anyway so at the moment this seems like the best solution.