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
quill
Quill is a modern WYSIWYG editor built for compatibility and extensibility. It includes built-in undo and redo functionalities similar to @ckeditor/ckeditor5-undo. Quill's undo and redo features are part of its core module, making it easy to use without additional plugins.
tinymce
TinyMCE is a popular rich text editor that also provides undo and redo functionalities. Similar to @ckeditor/ckeditor5-undo, TinyMCE includes these features as part of its core editor capabilities, allowing users to easily revert and reapply changes.
draft-js
Draft.js is a JavaScript rich text editor framework developed by Facebook. It provides undo and redo functionalities through its EditorState management. Unlike @ckeditor/ckeditor5-undo, Draft.js requires more setup and configuration to implement these features.
CKEditor 5 undo feature
This package implements undo support for CKEditor 5.
Documentation
See the @ckeditor/ckeditor5-undo
package page in CKEditor 5 documentation.
License
Licensed under the GPL, LGPL and MPL licenses, at your choice. For full details about the license, please check the LICENSE.md
file.