vectorsize / substance-text

Substance Text
substance.github.com/text
MIT License
282 stars 26 forks source link

Lost focus after paste (in Chrome 10). #2

Closed miku closed 12 years ago

miku commented 13 years ago

When pasting something into the editor, it will lose focus. It won't happen, if this line is commented out.

michael commented 13 years ago

Hi! This is a known issue. I enforce sanitization every time content gets pasted into the editable area to ensure the markup isn't messed up. Since this is not a contenteditable operation (command) the focus gets lost. I can at least try to preserve the current cursor position. Thinking about it!

-- Michael