michaelpapworth / tinymce-knockout-binding

A KnockoutJS custom binding that applies a TinyMCE Editor to the bound HTML element
MIT License
39 stars 19 forks source link

Exception on line 44 #4

Closed cxs6056 closed 10 years ago

cxs6056 commented 10 years ago

Nevermind...had to do with my async loading of data!

First, thank you for this code. It is great! It is going to save me a ton of work. I thought I'd have to do this myself.

When I first load the binding, I'm getting an error on line 44 of wysiwyg.js when the extension is first loaded. It looks like the dispose callback is calling the tinymce remove function but tinymce hasn't been instantiated yet.

        ko.utils.domNodeDisposal.addDisposeCallback(element, function() {
            $( element ).tinymce().remove();
        });

image