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

mark-ckeditor5-build-multi-root

v0.0.1

Published

This repository presents a custom [multi-root editor build](https://ckeditor.com/docs/ckeditor5/latest/examples/framework/multi-root-editor.html) of CKEditor 5 with [real-time collaborative editing](https://ckeditor.com/docs/ckeditor5/latest/features/coll

Downloads

20

Readme

CKEditor 5 multi-root editor with real-time collaborative editing sample

This repository presents a custom multi-root editor build of CKEditor 5 with real-time collaborative editing features.

Quick start

  1. Clone the repository:

    git clone [email protected]:ckeditor/ckeditor5-collaboration-samples.git
    cd ckeditor5-collaboration-samples/multi-root-editor-with-real-time-collaboration
  2. Open the samples/multi-root-editor-with-collaboration.html page in the browser.

  3. Fill the dialog with correct token, websocket and upload URL endpoints. If you do not have these yet or do not know their meaning, contact us.

  4. Copy the URL and share it or paste in another tab to enjoy real-time collaborative editing.

Overview

The sample consists of an application using CKEditor 5 multi-root editor build with real-time collaborative editing. The application includes the editor with the users presence list together with real-time collaborative comments and track changes using a sidebar and a responsive display mode integration which reacts to the screen width.

The API exposed by the multi-root editor build in this sample allows you to easily create an instance of the editor on many editable elements, preserving the smooth editing experience and all real-time collaboration features.

It does not require the build step. However, if you want to modify the build, for instance to add more plugins, refer to the Creating your own build section below.

Note: Real-time collaboration is a complex topic and despite having over ten thousand tests, we cannot guarantee that no error will show up during a long collaboration session. Hence why the integration comes with the watchdog, which is a helpful utility that ensures an editor instance is running and in case of an error, tries to restore it to the working state. See the usage guide in the watchdog documentation.

Creating your own build

The CKEditor 5 build created for the purpose of this example is based on the multi-root editor, but you can use any other available CKEditor 5 build as a base. You can also check out other real-time collaboration samples to see the integration of other CKEditor 5 builds with real-time collaborative features.

If you want to customize the build, edit the application (inside the src/ directory) and then build it with the following commands:

npm install
npm run build

Note: The application supports JavaScript, PostCSS and SVG imports.

See the CKEditor 5 Installing plugins guide to learn more.

The build process uses the webpack configuration from webpack.config.js. If you are familiar with webpack, you can play with this file to achieve a custom build that would fit your needs. You can check the CKEditor 5 Advanced setup guide for some ready-to-use advanced configurations.