diff --git a/typo3/sysext/core/Configuration/RTE/SysNews.yaml b/typo3/sysext/core/Configuration/RTE/SysNews.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2169bf6401394bbdc0462a61fb949bd273ff203f --- /dev/null +++ b/typo3/sysext/core/Configuration/RTE/SysNews.yaml @@ -0,0 +1,28 @@ +# @internal Only to be used for sys_news + +imports: + - { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" } + - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" } + - { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" } + +editor: + config: + + toolbarGroups: + - { name: basicstyles, groups: [ basicstyles ] } + - { name: paragraph, groups: [ list, indent, blocks, align ] } + - { name: links, groups: [ links ] } + - { name: clipboard, groups: [clipboard, undo] } + - { name: document, groups: [ mode ] } + + removeButtons: + - Anchor + - Style + - Underline + - Strike + + removePlugins: + - image + + extraPlugins: + - autolink diff --git a/typo3/sysext/core/Configuration/TCA/sys_news.php b/typo3/sysext/core/Configuration/TCA/sys_news.php index f3dc297f5681fa4462ebfbe86ab72b77b5a2c609..7b2bb79189fd60fee7c5449af24f7dcbf17e5a53 100644 --- a/typo3/sysext/core/Configuration/TCA/sys_news.php +++ b/typo3/sysext/core/Configuration/TCA/sys_news.php @@ -74,6 +74,7 @@ return [ 'cols' => 48, 'rows' => 5, 'enableRichtext' => true, + 'richtextConfiguration' => 'sys_news' ], ], 'crdate' => [ diff --git a/typo3/sysext/core/ext_localconf.php b/typo3/sysext/core/ext_localconf.php index ee3ebb76e3b6cb60f150f75b4a4bf0819fa4768d..0496d93a3a6eaf7939494a423270ef0367a93ead 100644 --- a/typo3/sysext/core/ext_localconf.php +++ b/typo3/sysext/core/ext_localconf.php @@ -71,3 +71,8 @@ unset($metaTagManagerRegistry); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup( 'config.pageTitleProviders.record.provider = TYPO3\CMS\Core\PageTitle\RecordPageTitleProvider' ); + +// Register preset for sys_news +if (empty($GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['sys_news'])) { + $GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['sys_news'] = 'EXT:core/Configuration/RTE/SysNews.yaml'; +}