Customizing and locking style sheet ribbon

We’re distributing documents to multiple authors and want to prescribe a consistent set of styles (Title, Headings, Body text, header, footer, page numbers) for these authors to use, but remove the option of those authors changing the styles in the document. We want them focused on content, not restyling our corporate standards. So…

  1. Can we create a style configuration that can be pushed to multiple documents programatically
  2. Can we prevent authors from editing those styles

Hi @bkoch, welcome to the community! :blush:

Just to confirm — do you want the equivalent of Word’s Review → Restrict Editing → Limit formatting to a selection of styles (authors can still edit content and use your prescribed styles, but can’t modify style definitions or apply arbitrary formatting), or are you looking to hide/lock parts of the ribbon UI itself?

Nurullo – the former:

where team leads can set approved styles and authors can still edit content and use your prescribed styles, but can’t modify style definitions or apply arbitrary formatting.

The use case is a team of editors (sometimes over 50) working section by section on a document. We have control of the sections, but need to pre-populate the style ribbon with a set of approved styles (largely heads, body text, table text, etc.) and lock those styles down. We’d also like to remove unused styles to reduce complexity.

1 Like

Hey @bkoch, thanks for the details.

On distributing styles: you can prepare a master DOCX with your corporate styles defined and use it as the starting template for authors. If you’re running Document Server with a DMS integration, you can also configure templates via the editorConfig.templates parameter in the editor config API — they’ll show up in the Create New menu for your editors. Worth testing on a small pilot first to make sure everything carries through cleanly for your setup.

On locking styles down: the equivalent of Word’s Restrict Editing → Limit formatting to a selection of styles isn’t available in ONLYOFFICE Docs today. I’ve registered this as an enhancement request on our side. I’ll follow up here when there’s an update.

Quick update — the enhancement request for Limit formatting to a selection of styles is now tracked as #82421. No ETA at the moment, but we’ll keep this thread posted.