Project

General

Profile

Actions

Bug #80394

closed

ckeditor: js error when changing a link

Added by Eckard Gehrke about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2017-03-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi,
I was trying out the new ckeditor and found out that I get an js error when trying to change a link.

SCRIPT5007: Unable to get property 'length' of undefined or null reference
it happens in typo3link.js (71,9)

var additionalAttributes = editor.config.typo3link.additionalAttributes;
for (i = additionalAttributes.length; --i >= 0;) {

the object editor.config.typo3link has no additionalAttributes.
then it results in the above mentioned error:

var additionalAttributes = editor.config.typo3link.additionalAttributes;
for (i = additionalAttributes.length; --i >= 0;) {

when trying in the above coding to access additionalAttributes.length. Maybe there should be a check if the additionalAttributes is not null.

The result is thaton IE I can not change the link, have to tremove and create it new.
I am using latest typo3 version 8.6.1. if you wish I could retest a bugfix.

Best regards
Eckard.

Actions

Also available in: Atom PDF