Skip to content
Snippets Groups Projects
Commit 47b7c008 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[TASK] Reduce RTE options for sys_news content

System news records (sys_news) contain a `content`
field, which features a richtext editor. Previously using
the default configuration, having most of the available
options enabled.

Since system news are only displayed on the login
screen and are only intended for simple information,
most of the options are not relevant. Additionally,
some of those options did not work at all, due to
the missing frontend context (see e.g. #67556).

To ease the use for administrators, a simplified
RTE configuration is now used for the `content`
field of sys_news records.

In case administrators need additional options,
this can as usual still be achieved by overriding
the corresponding TCA configuration.

Resolves: #94980
Releases: master
Change-Id: Ib8825344b453a3d19c5cbcd96844be3c47408f9a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70742


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent ed60c2fa
Branches
Tags
No related merge requests found
# @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
......@@ -74,6 +74,7 @@ return [
'cols' => 48,
'rows' => 5,
'enableRichtext' => true,
'richtextConfiguration' => 'sys_news'
],
],
'crdate' => [
......
......@@ -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';
}
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