Nikatlas 5 anni fa
parent
commit
584536f307
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      Tools/InsertForm.js

+ 5 - 4
Tools/InsertForm.js

@@ -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);
 	}