Actions
Bug #81190
closedrtehtmlarea: TSconfig with page based condition is ignored in BrowseLinks and SelectImage windows
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2017-05-11
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Scenario:
- You have a multi tree instance with different RTE TSconfigs per tree.
- You want to avoid references to the TSconfig files in page records.
- So you use conditions with including the tsconfig in ext_localconf like this:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig( '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:foo/Configuration/TsConfig/Page/page_base.ts" condition="[PIDinRootline = 1234]">' );
Problem:
The TSconfig is totally ignored in the BrowseLinks and SelectImage windows loaded in an iframe.
Reason:
The ConditionMatcher instantiated by the TypoScriptParser tries to determine the page using GetVars 'id', 'edit' or 'cmd'. Those vars are not used loading the iframes, but a special string called 'RTEtsConfigParams'. So no page id, so no rootline to be evaluated for the condition.
Fix:
Include GetVar 'id' with the page uid into the iframe url.
I did not checked (yet) if v8 has a similar bug with ckeditor.
Actions