bootstrap-markdown icon indicating copy to clipboard operation
bootstrap-markdown copied to clipboard

Undo / Redo in the textarea

Open emagnier opened this issue 10 years ago • 2 comments

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

emagnier avatar Mar 10 '14 02:03 emagnier

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

franklingu avatar Jul 17 '14 07:07 franklingu

  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.

emagnier avatar Jul 19 '14 20:07 emagnier