My plugin doesn't seem to be making any changes to the document


#1

When plugins cause an error, any changes made during that edit operation are rolled back. Plugin actions are atomic – failure will revert the entire operation. Check the Developer Console for errors.