Actions
Bug #78293
closedrtehtmlarea Javascript not working
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2016-10-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
For me the custom RTE.anchorClasses.[xxx].titleText is not working. In the debugging process I found an error in sysext/rtehtmlarea/Resources/Public/JavaScript/RteLinkBrowser.js. The condition
if (document.ltargetform.ltarget && document.getElementById('ltargetrow').style.display === 'none')
will throw the error because of document.getElementById('ltargetrow') is null.
Searching the source reveals that in my rtehtmlarea Version 7.6.0 no row with that id is set up. In rtehtmlarea version 6.2.0 the tr with the input field for the target had this id. As I do not want to hide the option to select the target it works for me to just comment out these lines
else if (document.ltargetform.ltarget && document.getElementById('ltargetrow').style.display === 'none') { // Reset target to default if field is not displayed and class has no configured target document.ltargetform.ltarget.value = RteLinkBrowser.defaultLinkTarget; }
This solution probably will not work in general as I did not know if there is a possibility to hide the target-selection option and if so how it is done.
That do not solves my titleText issue but the javascript throws no error anymore.
Updated by Wouter Wolters about 8 years ago
- Assignee deleted (
Stanislas Rolland)
Updated by Mathias Schreiber about 7 years ago
- Status changed from New to Closed
HTMLArea is no longer supported by TYPO3.
You can open up new issues here https://github.com/FriendsOfTYPO3/rtehtmlarea.
Cheers
Mathias
Actions