Rename tsconfig files, add rte config for ckeditor
This commit is contained in:
+4
-4
@@ -1,4 +1,4 @@
|
||||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_events/Configuration/PageTS/Mod/WebLayout/BackendLayouts.ts">
|
||||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_events/Configuration/PageTS/Mod/Wizards/NewContentElement.ts">
|
||||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_events/Configuration/PageTS/RTE.ts">
|
||||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_events/Configuration/PageTS/TCEFORM.ts">
|
||||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_events/Configuration/PageTS/Mod/WebLayout/BackendLayouts.tsconfig">
|
||||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_events/Configuration/PageTS/Mod/Wizards/NewContentElement.tsconfig">
|
||||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_events/Configuration/PageTS/RTE.tsconfig">
|
||||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_events/Configuration/PageTS/TCEFORM.tsconfig">
|
||||
@@ -1,38 +0,0 @@
|
||||
RTE {
|
||||
default {
|
||||
contentCSS = EXT:ep_events/Resources/Public/css/rte.min.css
|
||||
showButtons (
|
||||
blockstylelabel, blockstyle, textstylelabel, textstyle, linebreak,
|
||||
formatblock, bar, bold, italic, bar, orderedlist, unorderedlist,
|
||||
indent, bar, link, unlink, removeformat, linebreak,
|
||||
table, toggleborders, tableproperties, rowproperties, rowinsertabove,
|
||||
rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter,
|
||||
columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter,
|
||||
celldelete, cellsplit, cellmerge, image, insertcharacter, chMode, pastetoggle
|
||||
)
|
||||
keepButtonGroupTogether = 1
|
||||
|
||||
proc {
|
||||
allowedClasses = coloured-list, footnote-list
|
||||
entryHTMLparser_db {
|
||||
tags {
|
||||
span.fixAttrib.style.unset = 1
|
||||
span.rmTagIfNoAttrib = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buttons {
|
||||
formatblock.removeItems = h1,h5,h6,section,div,footer,header,nav,aside,blockquote,pre,address,article
|
||||
pastetoggle.setActiveOnRteOpen = 1
|
||||
blockstyle.tags.ul.allowedClasses = coloured-list, footnote-list
|
||||
}
|
||||
}
|
||||
|
||||
classes {
|
||||
button.name = Button
|
||||
buttonfull.name = Button (volle Breite)
|
||||
coloured-list.name = Farbige Bullets
|
||||
footnote-list.name = Fußnote
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
RTE {
|
||||
config {
|
||||
tt_content {
|
||||
bodytext {
|
||||
types {
|
||||
text {
|
||||
preset = dpn
|
||||
}
|
||||
textmedia {
|
||||
preset = dpn
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
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:
|
||||
contentsCss:
|
||||
- "EXT:ep_events/Resources/Public/css/rte.min.css"
|
||||
|
||||
stylesSet:
|
||||
- { name: "Button", element: "a", attributes: { 'class': 'button' } }
|
||||
- { name: "Button (volle Breite)", element: "a", attributes: { 'class': 'buttonfull' } }
|
||||
- { name: "Farbige Bullets", element: "ul", attributes: { 'class': 'coloured-list' } }
|
||||
- { name: "Fußnote", element: "ul", attributes: { 'class': 'footnote-list' } }
|
||||
|
||||
toolbarGroups:
|
||||
- { name: styles, groups: [ format, styles ] }
|
||||
- { name: basicstyles, groups: [ basicstyles ] }
|
||||
- { name: paragraph, groups: [ list] }
|
||||
- "/"
|
||||
- { name: links, groups: [ links ] }
|
||||
- { name: clipboard, groups: [ clipboard, cleanup, undo ] }
|
||||
- { name: editing, groups: [ spellchecker ] }
|
||||
- { name: insert, groups: [ insert ] }
|
||||
- { name: tools, groups: [ table, specialchar ] }
|
||||
- { name: document, groups: [ mode ] }
|
||||
|
||||
format_tags: "p;h1;h2;h3;h4"
|
||||
|
||||
removePlugins:
|
||||
- image
|
||||
|
||||
removeButtons:
|
||||
- Anchor
|
||||
- Underline
|
||||
- Strike
|
||||
@@ -104,12 +104,6 @@ call_user_func(function() {
|
||||
(string) \EP\EpEvents\Constants::PAGETYPE_OFFER
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
|
||||
'ep_events',
|
||||
'Configuration/TypoScript/pageTSconfig.ts',
|
||||
'EP Events'
|
||||
);
|
||||
|
||||
// Add category page type
|
||||
$GLOBALS['PAGES_TYPES'][\EP\EpEvents\Constants::PAGETYPE_CATEGORY] = [
|
||||
'type' => 'web',
|
||||
|
||||
@@ -118,6 +118,9 @@ call_user_func(function() {
|
||||
]
|
||||
);
|
||||
|
||||
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['default'] = 'EXT:ep_events/Configuration/RTE/Default.yaml';
|
||||
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['dpn'] = 'EXT:ep_events/Configuration/RTE/Default.yaml';
|
||||
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['EP.EpEvents'] =
|
||||
\EP\EpEvents\Hooks\Tcemain::class;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user