Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@ckeditor/ckeditor5-undo
Advanced tools
@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.
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 );
} );
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 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 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.
This package implements undo support for CKEditor 5.
See the @ckeditor/ckeditor5-undo
package page in CKEditor 5 documentation.
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.
FAQs
Undo feature for CKEditor 5.
We found that @ckeditor/ckeditor5-undo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.