Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-source-editing

Package Overview
Dependencies
Maintainers
0
Versions
667
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.

  • 43.1.0-alpha.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
192K
decreased by-29.86%
Maintainers
0
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

FAQs

Package last updated on 01 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc