Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tinymce4_rte
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TYPO3
tinymce4_rte
Merge requests
!8
Add multiple contentCSS support
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add multiple contentCSS support
agrein/tinymce4_rte:master
into
master
Overview
0
Commits
1
Changes
1
Merged
Alexander Grein
requested to merge
agrein/tinymce4_rte:master
into
master
9 years ago
Overview
0
Commits
1
Changes
-
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c845e1fa
1 commit,
9 years ago
+
10
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Classes/Form/Element/RichTextElement.php
+
10
−
9
Options
@@ -593,15 +593,16 @@ class RichTextElement extends AbstractFormElement {
$tinyMCE
=
GeneralUtility
::
makeInstance
(
Loader
::
class
);
$tinyMCE
->
loadConfiguration
(
$this
->
vanillaRteTsConfig
[
'properties'
][
'default.'
][
'tinymceConfiguration'
]);
if
(
$this
->
vanillaRteTsConfig
[
'properties'
][
'default.'
][
'contentCSS'
]
!==
''
)
{
$contentCssFile
=
GeneralUtility
::
getFileAbsFileName
(
$this
->
vanillaRteTsConfig
[
'properties'
][
'default.'
][
'contentCSS'
]
);
if
(
is_file
(
$contentCssFile
))
{
$contentCssFile
=
GeneralUtility
::
getIndpEnv
(
'TYPO3_SITE_URL'
)
.
PathUtility
::
stripPathSitePrefix
(
$contentCssFile
)
.
'?'
.
filemtime
(
$contentCssFile
);
$tinyMCE
->
addConfigurationOption
(
'content_css'
,
$contentCssFile
);
$contentCssArray
=
is_array
(
$this
->
vanillaRteTsConfig
[
'properties'
][
'default.'
][
'contentCSS.'
])
?
$this
->
vanillaRteTsConfig
[
'properties'
][
'default.'
][
'contentCSS.'
]
:
(
array
)
$this
->
vanillaRteTsConfig
[
'properties'
][
'default.'
][
'contentCSS'
];
if
(
!
empty
(
$contentCssArray
))
{
$contentCssFileArray
=
array
();
foreach
(
$contentCssArray
as
$contentCssKey
=>
$contentCssFile
)
{
$contentCssFileAbs
=
GeneralUtility
::
getFileAbsFileName
(
trim
(
$contentCssFile
));
if
(
is_file
(
$contentCssFileAbs
))
{
$contentCssFileArray
[]
=
GeneralUtility
::
getIndpEnv
(
'TYPO3_SITE_URL'
)
.
PathUtility
::
stripPathSitePrefix
(
$contentCssFileAbs
)
.
'?'
.
filemtime
(
$contentCssFileAbs
);
}
}
$tinyMCE
->
addConfigurationOption
(
'content_css'
,
implode
(
','
,
$contentCssFileArray
));
}
}
Loading