![ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond](https://cdn.sanity.io/images/cgdhsj6q/production/ffe9b5b611f8f69c94d39083e217fbc83e3687c2-1024x1024.webp?w=400&fit=max&auto=format)
Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@ckeditor/ckeditor5-source-editing
Advanced tools
Source editing feature for CKEditor 5.
@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.
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');
TinyMCE is a popular WYSIWYG HTML editor that also offers a source code editing mode. It provides a similar feature set to @ckeditor/ckeditor5-source-editing, allowing users to switch between visual and code views.
Quill is another WYSIWYG editor that supports source code editing through extensions. While it is not as feature-rich as CKEditor 5, it provides a lightweight alternative for basic source code editing needs.
Froala Editor is a lightweight WYSIWYG editor that includes a source code view feature. It offers a similar user experience to @ckeditor/ckeditor5-source-editing, with a focus on ease of use and performance.
This package implements the source editing support for CKEditor 5 that allows you to view and edit the source of the document.
Check out the demo in the source editing feature guide.
See the @ckeditor/ckeditor5-source-editing
package page as well as the source editing feature guide in the CKEditor 5 documentation.
npm install ckeditor5
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
Source editing feature for CKEditor 5.
The npm package @ckeditor/ckeditor5-source-editing receives a total of 0 weekly downloads. As such, @ckeditor/ckeditor5-source-editing popularity was classified as not popular.
We found that @ckeditor/ckeditor5-source-editing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.