Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tinymce4_rte
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
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
Show more breadcrumbs
Marco Huber
tinymce4_rte
Commits
93fba4cc
Commit
93fba4cc
authored
10 years ago
by
Stefan Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Non-relative paths to the contentCSS are not accepted
Fixes: #61163
parent
70063c9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Editors/RteBase.php
+9
-4
9 additions, 4 deletions
Classes/Editors/RteBase.php
with
9 additions
and
4 deletions
Classes/Editors/RteBase.php
+
9
−
4
View file @
93fba4cc
...
...
@@ -32,6 +32,7 @@ use TYPO3\CMS\Backend\Utility\BackendUtility;
use
TYPO3\CMS\Core\Page\PageRenderer
;
use
TYPO3\CMS\Core\Utility\ExtensionManagementUtility
;
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
use
TYPO3\CMS\Core\Utility\PathUtility
;
/**
* A RTE using TinyMCE
...
...
@@ -90,10 +91,14 @@ class RteBase extends AbstractRte {
$tinyMCE
=
GeneralUtility
::
makeInstance
(
'tinyMCE'
);
$tinyMCE
->
loadConfiguration
(
$userOrPageProperties
[
'properties'
][
'default.'
][
'tinymceConfiguration'
]);
if
(
$userOrPageProperties
[
'properties'
][
'default.'
][
'contentCSS'
]
!==
''
)
{
$tinyMCE
->
addConfigurationOption
(
'content_css'
,
'/'
.
$userOrPageProperties
[
'properties'
][
'default.'
][
'contentCSS'
]
);
$contentCssFile
=
GeneralUtility
::
getIndpEnv
(
'TYPO3_SITE_URL'
)
.
PathUtility
::
stripPathSitePrefix
(
GeneralUtility
::
getFileAbsFileName
(
$userOrPageProperties
[
'properties'
][
'default.'
][
'contentCSS'
]
)
);
$tinyMCE
->
addConfigurationOption
(
'content_css'
,
$contentCssFile
);
}
$tinyMCE
->
loadJsViaPageRenderer
(
$pageRenderer
,
TRUE
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment