Question
Balancing Braces via the DW API
I'm attempting to create my first extension, but I'm running
into a bit of trouble. I would like to balance braces from the
current selection and then collapse the selected code. Everything's
working except for the balance braces part.
When I try to run the dom.source.balanceBracesTextview() function per the API documentation, I get the following error:
"dom.source.balanceBracesTextview() is not a function."
I've attached the function that attempts to do this functionality.
Any help would be most appreciated.
Cheers,
Steve
When I try to run the dom.source.balanceBracesTextview() function per the API documentation, I get the following error:
"dom.source.balanceBracesTextview() is not a function."
I've attached the function that attempts to do this functionality.
Any help would be most appreciated.
Cheers,
Steve
