Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-watchdog

Package Overview
Dependencies
1
Maintainers
1
Versions
491
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ckeditor/ckeditor5-watchdog

A watchdog feature for CKEditor 5 editors. It keeps a CKEditor 5 editor instance running.


Version published
Weekly downloads
384K
increased by12.95%
Maintainers
1
Created
Weekly downloads
 

Package description

What is @ckeditor/ckeditor5-watchdog?

@ckeditor/ckeditor5-watchdog is a package designed to enhance the stability and reliability of CKEditor 5 by providing mechanisms to monitor and automatically recover from editor crashes. It ensures that the editor remains operational even in the face of unexpected errors.

What are @ckeditor/ckeditor5-watchdog's main functionalities?

Editor Watchdog

The Editor Watchdog monitors a single CKEditor 5 instance and automatically restarts it in case of a crash. This ensures that the editor remains available to the user.

const { EditorWatchdog } = require('@ckeditor/ckeditor5-watchdog');
const ClassicEditor = require('@ckeditor/ckeditor5-editor-classic/src/classiceditor');

const watchdog = new EditorWatchdog(ClassicEditor);

watchdog.create(document.querySelector('#editor'), {
    // Editor configuration.
}).catch(error => {
    console.error('Error initializing the editor:', error);
});

Context Watchdog

The Context Watchdog monitors a CKEditor 5 context, which can include multiple editor instances. It ensures that all editors within the context are restarted in case of a crash, maintaining the overall stability of the editing environment.

const { ContextWatchdog } = require('@ckeditor/ckeditor5-watchdog');
const Context = require('@ckeditor/ckeditor5-core/src/context');

const watchdog = new ContextWatchdog(Context);

watchdog.create({
    // Context configuration.
}).then(context => {
    // Create editors within the context.
}).catch(error => {
    console.error('Error initializing the context:', error);
});

Other packages similar to @ckeditor/ckeditor5-watchdog

Readme

Source

CKEditor 5 watchdog feature

npm version Coverage Status Build Status

This package implements the watchdog feature for CKEditor 5. It keeps a CKEditor 5 rich-text editor instance running.

Documentation

See the @ckeditor/ckeditor5-watchdog package page as well as the Watchdog feature guide in CKEditor 5 documentation.

Installation

npm install ckeditor5

License

Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md file or https://ckeditor.com/legal/ckeditor-oss-license.

Keywords

FAQs

Last updated on 14 Jun 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc