Editing and Saving a Richeditor Onlyoffice Document

I need to upload the MSWord file to the built-in editor (onlyoffice), modify it, and then upload it to my server as an MSWord file. I have already installed onlyoffice on my computer. https://api.onlyoffice.com/editors/demopreview#text

When I run JavascriptExample and click edit, editing is not allowed, how do I enable document editing? Is it possible to upload the modified file (after saving) to my web server url via http? Perhaps there is another solution without using OnlyOffice.

+6
source share
1 answer

The editing function will not work if you do not follow their procedure:

  • Download the document server installation and configure it on the local server from here

  • Choose a programming language and download the code to integrate online editors into your website (in your case, javascript sample )

  • Edit the configuration files in the sample by changing the default path for one to the editors installed in step 1, for this:

    • Open the OnlineEditorsExampleJS.html file in the sample folder.
    • At line # 10 <script id="scriptApi" type="text/javascript" src="https://doc.teamlab.com/OfficeWeb/apps/api/documents/api.js"></script> change te script to your installed editor (which you downloaded in step 1).

but

There are so many good editors who, in my opinion, are much better than this.

Free online editors:

and if you don't mind using the MS service itself, you can get started here

Note:

This library sounds promising, but it actually lacks documentation, but I would prefer to add it for future purposes.

+2
source

Source: https://habr.com/ru/post/983759/


All Articles