Roo/htmleditor/Block.js
authorAlan <alan@roojs.com>
Thu, 4 Nov 2021 03:19:50 +0000 (11:19 +0800)
committerAlan <alan@roojs.com>
Thu, 4 Nov 2021 03:19:50 +0000 (11:19 +0800)
Roo/htmleditor/Block.js

index ec736e7..cf3d2cb 100644 (file)
@@ -20,8 +20,8 @@ Roo.htmleditor.Block.factory = function(node)
 {
     
     var id = Roo.get(node).id;
-    if (typeof(Roo.html.Block.cache[id]) != 'undefined') {
-        return Roo.html.Block.cache[id];
+    if (typeof(Roo.htmleditor.Block.cache[id]) != 'undefined') {
+        return Roo.htmleditor.Block.cache[id];
     }
     
     var cls = Roo.htmleditor['Block' + Roo.get(node).attr('data-block')];
@@ -29,8 +29,8 @@ Roo.htmleditor.Block.factory = function(node)
         Roo.log("OOps missing block : " + 'Block' + Roo.get(node).attr('data-block'));
         return false;
     }
-    Roo.html.Block.cache[id] = new cls({ node: node })
-    return Roo.html.Block.cache[id];  /// should trigger update element
+    Roo.htmleditor.Block.cache[id] = new cls({ node: node })
+    return Roo.htmleditor.Block.cache[id];  /// should trigger update element
 }
 // question goes here... do we need to clear out this cache sometimes?
 // or show we make it relivant to the htmleditor.
@@ -103,5 +103,5 @@ Roo.htmleditor.Block.prototype = {
     } 
     
     
-}
+};