thijsw/angular-medium-editor

Medium editor creates too many toolbars even when I go to another page

volyx opened this issue · 1 comments

volyx commented

Medium editor don't destroy toolbar when i left page.

To repoduce - create many medium editors on page, more than 25 in my case.

64fa8de41fc165d1c1471643b153eb83 1

klmdb commented

this could easily be fixed by adding

    scope.$on('$destroy', function() {
      ngModel.editor.destroy();
    });

to the link function.