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

@ckeditor/ckeditor5-source-editing

Package Overview
Dependencies
Maintainers
1
Versions
866
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-source-editing

Source editing feature for CKEditor 5.

0.0.0-nightly-20230803.0
Source
npm
Version published
Weekly downloads
397K
6.26%
Maintainers
1
Weekly downloads
 
Created

What is @ckeditor/ckeditor5-source-editing?

@ckeditor/ckeditor5-source-editing is a plugin for CKEditor 5 that allows users to switch between the WYSIWYG editor and the source code view. This is particularly useful for users who need to edit the HTML source code directly.

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

Enable Source Editing

This code snippet demonstrates how to enable the Source Editing plugin in a CKEditor 5 instance. By adding the SourceEditing plugin to the extraPlugins array, users can toggle between the WYSIWYG editor and the source code view.

ClassicEditor.create(document.querySelector('#editor'), { extraPlugins: [ SourceEditing ] })

Toggle Source Editing Mode

This code snippet shows how to programmatically toggle the source editing mode in CKEditor 5. By executing the 'sourceEditing' command, the editor switches between the WYSIWYG view and the source code view.

editor.execute('sourceEditing');

Other packages similar to @ckeditor/ckeditor5-source-editing

Keywords

ckeditor

FAQs

Package last updated on 03 Aug 2023

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