I’m using OnlyOffice version 7.0.0.1 on a laptop using Arch Linux.
When I create a new, blank document, the font is automatically Arial, 11 pt. and . Of course, I can change this without a problem, but I’d prefer to have new documents start automatically in a different font and font size. Is there a way to change the default settings for this? Everytime I search for a way to do this, I just get an answer to change the font for the current document, not all future documents.
Hello @rpallen
You should replace the pre-made example of the file by another one with necessary font settings saved to achieve your scenario. Examples are located here: /opt/onlyoffice/desktopeditors/converter/empty
Thanks. That worked, but it wasn’t as easy as it might seem. Below is what I did.
In a terminal as root (sudo) I backed up the original /opt/onlyoffice/desktopeditors/converter/empty/pt-BR/new.docx to new.docx.orig.
I then opened new.docx.orig in OnlyOffice, changed it to the settings I want and then tried to save, but it wouldn’t let me.
I closed without saving.
I opened a terminal window and started OnlyOffice as root (sudo onlyoffice-desktopeditors).
I opened new.docx.orig.
I then was able to save the file as new.docx.
After I closed OnlyOffice as root and opened it again as a non-root user, the new document opened fine with the new settings.
Thanks again and feel free to pass on these more detailed instructions to anyone who asks the same thing. Or feel free to incorporate them into the OnlyOffice docs.
I understand what you’re saying, but I am a bit reluctant to change permissions in a program-even if it is just a document. I’m not a complete newbie, but I’m certainly no expert. Sometimes there are reasons something has the permissions it has that I may not know about. I’m not completely against doing so, but if I have an alternative way to do something that is not too convoluted, I’ll generally take the alternative.
Salve, mi sono appena iscritto e quindi trovo una risposta di 6 mesi fà, mi scuso in anticipo per la meraviglia, ma veramente è necessario fare questo iter per preimpostare il carattere, l’altezza, i margini e così via?
Hello, I apologize, I don’t go to the forums very much; I translate the message with google translate
Hi, I just signed up and then I find an answer 6 months ago, I apologize in advance for the question with amazement, but is it really necessary to do this process to preset the font, height, margins and so on?
As I said in a previous post, your method worked. Unfortunaley, when I update the program, updates restores the original template file. I don’t know if there is a way to prevent this, so I’m left with doing the same procedure after each time I upgrade or just live with the settings in the original template.
I have also placed these templates in the en-GB and en-US folders. But new documents still have English (US) as the default locale.
Any suggestions as to what might be going wrong?
EDIT: I had to resave the files and it seems to work again. My guess is that after OnlyOffice updated, it began ignoring the ‘older’ files in the structure.
Hello @theneilkirk and @rpallen
This is expected behaviour. Each time the app runs an update, templates are replaced with default ones. It’s necessary step to avoid conflicts with new version of the app.
Workaround solution is saving necessary templates to other location before the update process and replace them back when update process is finished.
Have you considered a different approach to templates that doesn’t require editing protected files?
Identify a well-known location in the user home directory where default templates will be stored
Distribute standard default templates with the software
If templates mentioned in #1 don’t exist, copy them into that location from #2 at first run
Don’t replace them in future updates because they already exist
Have the software use the templates in the user’s home directory for new documents, not the ones deployed with the software.
Then, include UI options to allow (A) edit the user’s default template and (B) replace the user’s current default template with the one distributed with the software.
I want to deploy OnlyOffice on new machines but it’s difficult to do so in my locale due to obstacles in customizing templates.
Hello @royal
We added your suggestion to internal tracksystem. We have started working on it.
I will update this thread once we have something to share.
As a (local desktop) user I would like to create my own templates and have these listed in the Templates section of the Desktop app (next to Local and Cloud).
When creating a new file/document, I would like to be able to choose one of these Templates.
In the Templates section I would also like to be able to filter on Template title and file type.
Hello @Maarten
Understood, we have added your request to internal tracksystem. We are working on the mentioned feature already. Unfortunately, no ETA at the moment.