npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

onlyoffice-strapi

v1.1.0

Published

The integration app allows users to view, edit, and co-author office documents, spreadsheets, and presentations added to the Strapi Media Library using ONLYOFFICE Docs.

Downloads

9

Readme

Strapi ONLYOFFICE integration plugin

This app enables users to edit office documents from Strapi using ONLYOFFICE Docs packaged as Document Server - Community or Enterprise Edition.

Features

The app allows to:

  • View and edit text documents, spreadsheets, and presentations.
  • Co-edit documents in real-time using two co-editing modes (Fast and Strict), Track Changes, comments, built-in chat.

Installing ONLYOFFICE Docs

You will need an instance of ONLYOFFICE Docs (Document Server). You can install free Community version or scalable Enterprise Edition.

To install free Community version, use Docker (recommended) or follow these instructions for Debian, Ubuntu, or derivatives.

To install Enterprise Edition, follow the instructions here.

Community Edition vs Enterprise Edition comparison can be found here.

Installing Strapi ONLYOFFICE integration plugin

  1. You need to change the Strapi middlewares file: strapi/config/middlewares.js.

    To allow inserting a frame with the editor and loading api.js, replace the strapi::security line in this file with the following:

    {
      name: "strapi::security",
      config: {
        contentSecurityPolicy: {
          useDefaults: true,
          directives: {
            "script-src": ["'self'", "https:", "http:"],
            "frame-src": ["'self'", "https:", "http:"],
          },
        },
      },
    },

    If such a config already exists, you just need to add directives.

  2. Install the plugin in your Strapi project:

    npm install onlyoffice-strapi --save
  3. After successful installation you have to rebuild the admin UI so it'll include this plugin. To rebuild and restart Strapi run:

    # using yarn
    yarn build
    yarn develop
    
    # using npm
    npm run build
    npm run develop

Configuring Strapi ONLYOFFICE integration plugin

You can configure ONLYOFFICE app via Strapi Dashboard -> Settings -> Global settings -> ONLYOFFICE. On the settings page, enter:

  • Document server address: The URL of the installed ONLYOFFICE Document Server.
  • Document server JWT secret key: Enables JWT to protect your documents from unauthorized access (further information can be found here).

Using Strapi ONLYOFFICE integration plugin

Users are able to view, edit, and co-author documents added to the Strapi Media Library. Documents available for viewing/editing can be found and sorted on the ONLYOFFICE file page within Strapi. The editor opens by clicking on the file name.

Access rights

  • Opening files for editing: roles with the Update (crop, details, replace) + delete permission setting.
  • Opening files for viewing: roles with the Access the Media Library permission setting.

ONLYOFFICE Docs editions

ONLYOFFICE offers different versions of its online document editors that can be deployed on your own servers.

ONLYOFFICE Docs packaged as Document Server:

  • Community Edition (onlyoffice-documentserver package)
  • Enterprise Edition (onlyoffice-documentserver-ee package)

The table below will help you make the right choice.

| Pricing and licensing | Community Edition | Enterprise Edition | | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | | | Get it now | Start Free Trial | | Cost | FREE | Go to the pricing page | | Simultaneous connections | up to 20 maximum | As in chosen pricing plan | | Number of users | up to 20 recommended | As in chosen pricing plan | | License | GNU AGPL v.3 | Proprietary | | Support | Community Edition | Enterprise Edition | | Documentation | Help Center | Help Center | | Standard support | GitHub or paid | One year support included | | Premium support | Contact us | Contact us | | Services | Community Edition | Enterprise Edition | | Conversion Service | + | + | | Document Builder Service | + | + | | Interface | Community Edition | Enterprise Edition | | Tabbed interface | + | + | | Dark theme | + | + | | 125%, 150%, 175%, 200% scaling | + | + | | White Label | - | - | | Integrated test example (node.js) | + | + | | Mobile web editors | - | +* | | Plugins & Macros | Community Edition | Enterprise Edition | | Plugins | + | + | | Macros | + | + | | Collaborative capabilities | Community Edition | Enterprise Edition | | Two co-editing modes | + | + | | Comments | + | + | | Built-in chat | + | + | | Review and tracking changes | + | + | | Display modes of tracking changes | + | + | | Version history | + | + | | Document Editor features | Community Edition | Enterprise Edition | | Font and paragraph formatting | + | + | | Object insertion | + | + | | Adding Content control | + | + | | Editing Content control | + | + | | Layout tools | + | + | | Table of contents | + | + | | Navigation panel | + | + | | Mail Merge | + | + | | Comparing Documents | + | + | | Spreadsheet Editor features | Community Edition | Enterprise Edition | | Font and paragraph formatting | + | + | | Object insertion | + | + | | Functions, formulas, equations | + | + | | Table templates | + | + | | Pivot tables | + | + | | Data validation | + | + | | Conditional formatting | + | + | | Sparklines | + | + | | Sheet Views | + | + | | Presentation Editor features | Community Edition | Enterprise Edition | | Font and paragraph formatting | + | + | | Object insertion | + | + | | Transitions | + | + | | Presenter mode | + | + | | Notes | + | + | | Form creator features | Community Edition | Enterprise Edition | | Adding form fields | + | + | | Form preview | + | + | | Saving as PDF | + | + | | | Get it now | Start Free Trial |

* If supported by DMS.

In case of technical problems, the best way to get help is to submit your issues here. Alternatively, you can contact ONLYOFFICE team on forum.onlyoffice.com.