refactory-id / bootstrap-markdown

Bootstrap plugin for markdown editing
Apache License 2.0
1.99k stars 371 forks source link

Undo / Redo in the textarea #49

Open emagnier opened 10 years ago

emagnier commented 10 years ago

When using the system undo/redo after have used the toolbar buttons, the content in the textarea becomes messed up.

franklingu commented 10 years ago

can you be more specific about how to replicate this problem?

emagnier commented 10 years ago
  1. Writes/Edits something in the textarea of Bootstrap-Markdown
  2. Inserts a link by using the corresponding editor button
  3. Press the Ctrl/Cmd + Z keys to undo your last changes

-> The Undo behaviour doesn't work correctly.

I think I found how to resolve this issue here: http://stackoverflow.com/questions/7553430/javascript-textarea-undo-redo#answer-7554295 But I haven't taken the time yet to submit a PR.