angular-ui / ui-tinymce

AngularUI wrapper for TinyMCE
MIT License
487 stars 370 forks source link

Resetting Undo Manager after content is set to allow the same editor to be used for multiple data rows. #334

Open anyandallart opened 7 years ago

anyandallart commented 7 years ago

When using the same tinymce editor for different rows of content (i.e. open row 1 to populate editor, close row 1, then open row 2 to populate the same editor), there is an issue where if you hit "undo" while in row 2, it will start going back to the content from row 1. I would recommend adding in a line that will refresh the undoManager when the content is re-set.

deeg commented 7 years ago

Can you please squash these into one commit and I can work on getting these changes in.

anyandallart commented 7 years ago

Should be good.

deeg commented 7 years ago

It looks like travis says there is a test failing. Can you check on that?