@@ -33,19 +33,20 @@ export default class InsertForm extends Tool{
}
- editViewNode(VS,node){
+ editViewNode(CS,node){
let View = null;
if(!node ){
return;
- Object.keys(VS.views).map((key) => {
+ let Views = CS.ViewSystem.views;
+ Object.keys(Views).map((key) => {
- if(VS.views[key].ViewTree.nodes[node.id]){
+ if(Views[key].ViewTree.nodes[node.id]){
View = key;
})
let EditNode = new ViewNode(Math.random(),"ViewComp",{text:"Manipulationg the dom",style:styles})
- VS.views[View].addViewNode(EditNode,node)
+ Views[View].setContent(EditNode,node);