scripting:api:base-document:can-undo