yabwe / words

A humble yet ambitious attempt to build a WYSIWYG editor, backed by JSON, without relying on document.execCommand
Other
19 stars 4 forks source link

Handle deletes correctly in JSON representation #1

Closed nmielnik closed 8 years ago

nmielnik commented 8 years ago

Make sure the JSON data structure is updated correctly whenever multiple characters are deleted at once.

This means merging together lingering words and/or blocks that may have been fragmented by the deleted characters.

This also covers pasting in chracters as replacements (doing a delete by highlighting a selection and pasting in new stuff)

nmielnik commented 8 years ago

Might want to do a bit more cleanup here...