Page 1 of 1

where is builder? (from the perspective of a plugin)

PostPosted: Thu Dec 07, 2017 7:11 pm
by robertotomas
Hi,

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 */)' );


I am looking to use SaveFile.

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. :)

Re: where is builder? (from the perspective of a plugin)

PostPosted: Thu Dec 07, 2017 8:19 pm
by robertotomas
hey I found my own solution! I can just do:
Code: Select all
Api.forceSave()

Re: where is builder? (from the perspective of a plugin)

PostPosted: Fri Dec 08, 2017 6:26 am
by Maxim
Hello robertotomas!
))) Forcesave