Commit e89e1a5a authored by Daniel Siepmann's avatar Daniel Siepmann Committed by Benni Mack
Browse files

[DOCS] Fix RTE preset example

The example for overwriting preset of a single field for specific type
(e.g. CType) was wrong. This is now fixed.

Also All examples were modified to create a better readable list to be
read from less specific to most specific with separated examples for
syntax and real world usage.

Resolves: #88858
Releases: master, 9.5
Change-Id: I759a606360b4e612e734cf70b7b992718d683dc9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62251


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent cdab7938
.. include:: ../Includes.txt .. include:: ../Includes.txt
.. highlight:: typoscript
.. _config-typo3: .. _config-typo3:
...@@ -23,22 +23,23 @@ Page TSconfig ...@@ -23,22 +23,23 @@ Page TSconfig
Relevant Settings for `rte_ckeditor` Relevant Settings for `rte_ckeditor`
------------------------------------ ------------------------------------
Page TSconfig can be used to change Page TSconfig can be used to change:
#. Default preset::
RTE.default.preset = full
#. Override for one table (:ts:`RTE.config.table.column.preset`)::
* the preset used in general RTE.config.tx_news_domain_model_news.preset = minimal
* or the preset used by specific database table fields.
* or the preset used by specific database table fields for a specific table type (see :ref:`t3tca:types`).
.. code-block:: typoscript #. Override for one field (:ts:`RTE.config.table.column.name.preset`)::
# Default preset RTE.config.tt_content.bodytext.preset = normal
RTE.default.preset = full
# RTE.config.table.column.preset = presetIdentifier #. Override for one field, if type matches (:ts:`RTE.config.table.column.types.name.preset`)::
RTE.config.tx_news_domain_model_news.preset = minimal
# RTE.config.table.column.types.name.preset = presetIdentifier RTE.config.tt_content.bodytext.types.textmedia.preset = minimal
RTE.config.tt_content.types.textpic.preset = default
For more examples, see :ref:`t3tsconfig:pageTsRte` in "TSconfig Reference". For more examples, see :ref:`t3tsconfig:pageTsRte` in "TSconfig Reference".
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment