i have a problem getting the current "tree node Object" in my angular controller.
Under $scope.$parent.$parent.$parent.$parent.$parent.$parent.currentNode i can find it, but there must be an easier way to get the current Node in my Backend Controller.
So simply: how to get current Node Object in my Controller, with children?
This node is not the one i need. I need the Node looks like the one on the image
this is what : //args.node = $scope.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.currentNode; shows me, but there must be an easyer way, because if i try this i need a timeout Function waiting until currentNode is loaded in scope
Getting the current Node
Hey,
i have a problem getting the current "tree node Object" in my angular controller.
Under $scope.$parent.$parent.$parent.$parent.$parent.$parent.currentNode i can find it, but there must be an easier way to get the current Node in my Backend Controller.
So simply: how to get current Node Object in my Controller, with children?
Thx for any Help
You can insert editorState as dependency in your angular controller.
Than you do this
Dave
This node is not the one i need.
I need the Node looks like the one on the image
this is what :
//args.node = $scope.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.$parent.currentNode;
shows me, but there must be an easyer way, because if i try this i need a timeout Function waiting until currentNode is loaded in scope
When I call editorState.current i get the current node that is being edited. Isn't that what you want ?
Maybe you can try to explain what you are trying to achieve ?
Dave
What you get is the content, but i need the node with childNodeUrl :/
Still not clear to me what you are trying to achieve. If you can explain that maybe that helps to find a solution.
Dave
is working on a reply...