Issue Bug Closed

#80394ckeditor: js error when changing a link

Eckard Gehrke 03/22/17, 12:49 updated 04/02/17, 23:22

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.