浏览代码

Insert Content

Nikatlas 5 年之前
父节点
当前提交
584536f307
共有 1 个文件被更改,包括 5 次插入4 次删除
  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);
 	}