Advance Live Template programmatically Follow
Which API can I use to move to the next live template variable within an editor? I'm looking to mimic the behavior for when someone presses "enter" when finished typing in those red boxes that popup when a live template is invoked. It is also the same behavior when tab is pressed
Please sign in to leave a comment.
You can call directly the API that NextVariableAction does:
I'm assuming I have to use:
Just not sure what to plug into createFromAction()
I got the behavior I desired to work with this verbose code.
If there's a better looking way, please let me know :)
Hi, sorry for bringing back this post. Is there a way to bring back the live template mode after clicking out of it. So i am able to tab through the variables again like in live template mode?
No, unfortunately that's complicated. One has to create a new live template that behaves just like the old one, and AFAIK there's no code doing that yet.
I see, i was hoping that feature existed. Thanks for the fast reply.