Skip to content

on destroy issue (ready fix proposal) #107

Description

@DrFairy

https://github.com/esvit/ng-ckeditor/blob/master/ng-ckeditor.js#L87 seems to need an addition to fix an error "CKEditor Uncaught TypeError: Cannot call method 'unselectable' of null" (multiple instances, multiple creations/destructions to reproduce).
Found while googling this error - http://stackoverflow.com/questions/19328548/ckeditor-uncaught-typeerror-cannot-call-method-unselectable-of-null-in-emberj
Needed addition (before "CKEDITOR.instances[instance.name].destroy();"):
CKEDITOR.instances[instance.name].removeAllListeners();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions