Configuration Reference

Here you will find a short overview on how to configure this extension.

Target group: Administrators

RTE configuration

All it takes to enable the plugin are the following changes in your e.g. RTE.yam 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:
imports:
   - { resource: "EXT:rte_ckeditor_codesnippet/Configuration/RTE/Plugin.yaml" }
  1. Enable the plugin in your RTE configuration:
editor:
  config:
    extraPlugins:
      - 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.