{
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')];
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.
}
-}
+};