       # tiny mce crashes if value is null
       if value == null
         value = ""
-      if tinymce and cache != value
+      if tinymce and cacheInstance == tinymce and cache != value
+        cacheInstance = tinymce
+        cache = value
         if tinymce.getContent() isnt value
           tinymce.setContent value
       return

(($, ko) ->
  cache = ""
  binding =
    after: [
      "attr"

        setTimeout (->
          value = editor.getContent()
          cache = value
          cacheInstance = editor
          
          # Update the view model
          writeValueToProperty args[1](), args[2], "tinymce", value
