简体   繁体   中英

Richeditor Onlyoffice edit & save document

I need to load MSWord file into embedded editor (onlyoffice), modify it, then upload to my server as MSWord file. I've already installed onlyoffice on my PC. https://api.onlyoffice.com/editors/demopreview#text

When i run JavascriptExample and press edit there is no editing allowed, how to enable document edit? Is it possible to upload modified file (after pressing save) to my web server's url by http? May be there is another solutions without using OnlyOffice.

The edit feature will not work unless you follow their procedure :

  1. Download Document Server installation and set it up on your local server from here

  2. Select the programming language and download the code for the sample of online editors integration into your web site ( in your case javascript sample )

  3. Edit the configuration files in the sample changing the default path for the one to the editors installed at step 1 , to do so :

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

However

There are so many good editors out there that in my opinion are much better than this one .

Free Online Editors :

  1. Google Docs
  2. Box

and if you dont mind using MS service itself , you can get started here

Note :

This Library sounds promising , but it really lacks documentation , but i would rather bookmark it for future purposes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM