Skip to content

Commit

Permalink
[DOCS] Add documentation for font plugin to CKEditor5
Browse files Browse the repository at this point in the history
Resolves: #103311
Resolves: TYPO3-Documentation/Changelog-To-Doc#858
Related: #100847
Releases: main, 12.4
Change-Id: I7de8bd33e489807a634f3efb3b1c6dfd19061cc5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83289
Tested-by: core-ci <typo3@b13.com>
Tested-by: Lina Wolf <112@linawolf.de>
Reviewed-by: Lina Wolf <112@linawolf.de>
  • Loading branch information
brotkrueml authored and linawolf committed Mar 7, 2024
1 parent 24bd2d0 commit bef9c9a
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions typo3/sysext/rte_ckeditor/Documentation/Configuration/Examples.rst
Expand Up @@ -149,6 +149,58 @@ plugin option :yaml:`config.htmlSupport`.
.. _CKEditor5 schema: https://ckeditor.com/docs/ckeditor5/latest/features/html/general-html-support.html#enabling-custom-elements


.. _config-example-fontplugin:

How do I configure the font plugin?
===================================

.. versionadded:: 12.4.12

In order to use the font plugin, the RTE configuration needs to be adapted:

.. code-block:: yaml
:caption: EXT:my_sitepackage/Configuration/RTE/MyPreset.yaml
editor:
config:
toolbar:
items:
# add button to select font family
- fontFamily
# add button to select font size
- fontSize
# add button to select font color
- fontColor
# add button to select font background color
- fontBackgroundColor
fontColor:
colors:
- { label: 'Orange', color: '#ff8700' }
- { label: 'Blue', color: '#0080c9' }
- { label: 'Green', color: '#209d44' }
fontBackgroundColor:
colors:
- { label: 'Stage orange light', color: '#fab85c' }
fontFamily:
options:
- 'default'
- 'Arial, sans-serif'
fontSize:
options:
- 'default'
- 18
- 21
importModules:
- { 'module': '@ckeditor/ckeditor5-font', 'exports': ['Font'] }
More information can be found in the
`official documentation of CKEditor <https://ckeditor.com/docs/ckeditor5/latest/features/font.html>`__.

.. _config-example-customplugin:

Expand Down

0 comments on commit bef9c9a

Please sign in to comment.