Integrates the CKEditor codesnippet plugin

Installs: 162

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0



1.0.1 2022-05-01 15:28 UTC

This package is auto-updated.

Last update: 2024-02-29 04:13:20 UTC


Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

This extension ships a simple plugin for the CkEditor to allow editors to insert coding tags inside text elements. The plugin itself has been taken from the CKEditor Inserting Code Snippet documentation without any changes.

At the moment it integrates the plugin version 4.18.0.

It suggests the extension fs_code_snippet to render the codesnippets in the frontend of your website.

Short overview:

First impression - what does it do?


Use composer require ehaerer/rte-ckeditor-codesnippet or download the extension from TER.

The extension requires the extension fs_code_snippet from TER or via Composer it will be required and installed automatically. fs_code_snippet is used to render the output in the frontend.


All it takes to enable the plugin are the following changes in your e.g. RTE.yaml with including the needed TsConfig and optional including the TypoScript configuration of fs_code_snippet:

  1. Import the configuration from the extension in your RTE configuration:
    - { resource: "EXT:rte_ckeditor_codesnippet/Configuration/RTE/Plugin.yaml" }
  1. Enable the plugin in your RTE configuration:
      - codesnippet
  1. Optional: include TypoScript constants and setup from fs_code_snippet in the configuration of your site package to render the code block in your website (frontend):
# constants
@import 'EXT:fs_code_snippet/Configuration/TypoScript/constants.txt'

# setup
@import 'EXT:fs_code_snippet/Configuration/TypoScript/setup.txt'
  1. Check the results in the backend editor and in the frontend of your website.