Try the fastest and simplest way to install ONLYOFFICE

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

Integration questions/issues

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

Postby robertotomas » Thu Dec 07, 2017 7:11 pm

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. :)
robertotomas
 
Posts: 21
Joined: Thu Aug 31, 2017 4:05 pm

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

Postby robertotomas » Thu Dec 07, 2017 8:19 pm

hey I found my own solution! I can just do:
Code: Select all
Api.forceSave()
robertotomas
 
Posts: 21
Joined: Thu Aug 31, 2017 4:05 pm

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

Postby Maxim » Fri Dec 08, 2017 6:26 am

Hello robertotomas!
))) Forcesave
Maxim
 
Posts: 1237
Joined: Tue Oct 11, 2016 2:34 pm


Return to API

Who is online

Users browsing this forum: No registered users and 2 guests

cron