Hi all,
I have been working on a small VE plugin that provides the functionality of adding SMW annotations. I am mostly done with the script but need to understand some minor coding practices for VE plugins to complete it. Would appreciate some help on these questions.
When the script makes some changes to the document model, sometimes the "Save" button stays greyed out. Is there a way I should trigger the save button to become active? Or maybe I am doing something in the wrong way.
The "undo" doesn't seem to automatically work for my code, what's the best way to develop that functionality?
I have a couple more doubts, but these are the major ones right now. Here's my code if needed, its a mess right now and needs lot of refactoring, etc
https://en.wikipedia.org/wiki/User:Nischayn22/veSMW.js
Thanks and regards, Nischay Nahata