CKEditor InsertHTML
Categories
Component ID
2821156
Component name
CKEditor InsertHTML
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Introduction
This module integrates the iinserthtml4x CKEditor plugin for Drupal 8.
It provides a simple dialog to insert HTML directly from the editing area into the source code at the point selected in the editor.
A common use case would be to assist content administrators who may need to paste code snippets or embed code from third party services, but are not comfortable working directly in source code.
Requirements
- CKEditor (Core)
Installation
- Download the inserthtml4x CKEditor plugin.
- Copy the plugin to the libraries directory. If libraries doesn't exist in the site root, create it. The plugin should be in
/libraries/inserthtml4x. - Download and install the CKEditor InsertHTML module as per usual.
Configuration
- Go to 'Text formats and editors' (
admin/config/content/formats). - Click 'Configure' for any text format using CKEditor as the text editor.
- Configure your CKEditor toolbar to include the Insert HTML button.
- If 'Limit allowed HTML tags and correct faulty HTML' is enabled, note that code entered via the Insert HTML button will be filtered according to the allowed tags defined.
