Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@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.
The npm package @ckeditor/ckeditor5-undo receives a total of 333,427 weekly downloads. As such, @ckeditor/ckeditor5-undo popularity was classified as popular.
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.