CKEditor InsertHTML

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

  1. Download the inserthtml4x CKEditor plugin.
  2. 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.
  3. Download and install the CKEditor InsertHTML module as per usual.

Configuration

  1. Go to 'Text formats and editors' (admin/config/content/formats).
  2. Click 'Configure' for any text format using CKEditor as the text editor.
  3. Configure your CKEditor toolbar to include the Insert HTML button.
  4. 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.