New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-undo

Package Overview
Dependencies
Maintainers
1
Versions
904
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-undo

Undo feature for CKEditor 5.

0.0.0-nightly-20241015.0
Source
npm
Version published
Weekly downloads
749K
-3.32%
Maintainers
1
Weekly downloads
 
Created

What is @ckeditor/ckeditor5-undo?

@ckeditor/ckeditor5-undo is a plugin for CKEditor 5 that provides undo and redo functionalities. It allows users to revert changes made to the content and reapply them if needed, enhancing the editing experience by providing a way to easily correct mistakes or revisit previous states of the content.

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

Undo

This feature allows users to revert the last change made to the content. The code sample demonstrates how to include the Undo plugin in a CKEditor 5 build and add undo functionality to the toolbar.

import Undo from '@ckeditor/ckeditor5-undo/src/undo';

ClassicEditor
    .create( document.querySelector( '#editor' ), {
        plugins: [ Undo, ... ],
        toolbar: [ 'undo', 'redo', ... ]
    } )
    .catch( error => {
        console.error( error );
    } );

Redo

This feature allows users to reapply the last undone change. The code sample shows how to include the Redo functionality in the CKEditor 5 toolbar using the Undo plugin.

import Undo from '@ckeditor/ckeditor5-undo/src/undo';

ClassicEditor
    .create( document.querySelector( '#editor' ), {
        plugins: [ Undo, ... ],
        toolbar: [ 'undo', 'redo', ... ]
    } )
    .catch( error => {
        console.error( error );
    } );

Other packages similar to @ckeditor/ckeditor5-undo

Keywords

ckeditor

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

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