![Avatar](https://secure.gravatar.com/avatar/157a590b28df291cbfcfda2c27e21c5a.jpg?s=64&d=identicon&r=g)
I can't find out how to implement next behavior in XML Syntax editor:
I have 2 buttons on form: Expand and Collapse.
1. When user clicks "Collapse" button - if the cursor inside the node, then it is collapsing.
2. When user clicks "Expand" button - if the cursor stands on collapsed node - it is expanding.
How to achieve this?
I have 2 buttons on form: Expand and Collapse.
1. When user clicks "Collapse" button - if the cursor inside the node, then it is collapsing.
2. When user clicks "Expand" button - if the cursor stands on collapsed node - it is expanding.
How to achieve this?