YunoHost-Apps / onlyoffice_ynh

OnlyOffice package for YunoHost
https://www.onlyoffice.com
GNU General Public License v3.0
17 stars 19 forks source link

Onlyoffice community edition : read only on android #48

Open tomdereub opened 3 years ago

tomdereub commented 3 years ago

Describe the bug It's impossible to edit documents online on android with the community edition. Does a workaround exists ? I mean, this impossibility is caused by proprietary code allowing modifications on android and not available in the opensource edition, or by a parameter creating this limit to incite people to by a licence, but with the whole code opensource ?

Expected behaviour Be able to edit online documents on android.

genderneutralnoun commented 2 months ago

Not to revive a dead issue except that's totally what I'm doing, but there have been examples of people doing this successfully. See here. Edit: There is also this. Edit 2: This post has the solution, I tested it and it works for the Yunohost version. (You may need to clear the cache for your Nextcloud app and/or mobile browser for it to take effect, and definitely restart your server after doing it, too.) It's only replacing an exclamation point with a space, but in case you don't want to type a random command into your server's terminal (understandable), you can follow this post to edit the files yourself. Bit of a pain though IMO, since all the code is in one giant line... Also I changed the text links in this comment to hyperlinks in this edit because I'm nice like that.

tomdereub commented 2 months ago

Thanks for this, it's very interesting ! I wanted to try the edit 2 to obtain mobile editing, but with onlyoffice 8.0.1 I don't find the "isSupportEditFeature" in the mentioned files.

genderneutralnoun commented 2 months ago

That's interesting, as I'm on the same version. Sorry it didn't help you.

tomdereub commented 2 months ago

Sorry, my mistake, actually it works, thank's a lot !

genderneutralnoun commented 2 months ago

That's great to hear!

I think it would be possible to include the sed command in the install and update script for this package, but I wasn't able to figure out the format of how the scripts work in the time I looked over this repo, so I'm unable to make a pull request. Also of note is that the editing is still quite basic; I can't italicize things, for example. There's a strange off-white bar at the bottom of the mobile editor, which sticks above your keyboard if you start typing, which makes me think it's supposed to be a sort of "function bar" that contains buttons for formatting options like italics, as seen in the Google Docs mobile app. It makes me think that the isSupportEditFeature only enables basic editing, and there might be other similar toggles in the same file for formatting edit features. Perhaps something to look into another day; I've had a rough night, I won't bore you with the details.