Having both a switch and a RTE in a custom component breaks the RTE

Avatar

Avatar
Level 1
blaris
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
blaris
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
View profile
blaris
Level 1

30-03-2020

Hello,


We have a custom component that uses the inline rich-text editor as one of its properties.  This seems to break when there are switches also in the dialog.

It throws this javascript error: 

blaris_0-1585587817267.png

It looks like this was a problem and fixed in 6.3.3.2, but wondering if anyone has come across it again? This is producible on version 6.5.2.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
vanegi
Employee

15-07-2020

This is reproducible on 6.3.2.2 via CQ-4252056 but not on master instance. This doesn't seem to relate to RTE. The error in console is just a side-effect. The root cause is that when the dialog is being opened, the foundation-contentloaded event is not being triggered and RTE initializes on that event.