wondering is someone can help me to understand where builder is, (see https://api.onlyoffice.com/docbuilder/basic ) -- from within a plugin I can immediately access Api, but not builder:
Code: Select all
window.Asc.plugin.info.recalculate = true; this.executeCommand("close", 'console.log(Api /* this works */); console.log(builder /* this does not work */)' );
The use case is to ensure that the latest changes to the file are saved before letting the user move on. If there is a better way programmatically, let me know.