U4-2545 - Selecting styles from the Richtext editor throws "Cannot read property '0' of undefined"

Created by Nikolay Arhangelov 25 Jul 2013, 14:42:37 Updated by Claus Jensen 14 Apr 2016, 10:50:55

I added custom styles to the rich text editor. When assigning a style to a text block nothing happens and the browser's console displays the following error: Uncaught TypeError: Cannot read property '0' of undefined.

See the attached screenshot.

1 Attachments

Comments

Sebastiaan Janssen 25 Jul 2013, 16:25:56

I'm closing this issue for now, could you attach the stylesheet please so I can see if I can reproduce this issue? In my test environment I don't get this error so it might be something in the specific stylesheet that you're using.

Also, make sure to update your ClientDependency.config file (just increase the version number in it by 1) and delete the files in ~/App_Data/Temp/ClientDependency/


Nikolay Arhangelov 26 Jul 2013, 07:33:19

I did the steps you mentioned, but the error still appears. Here is my CSS file: /* EDITOR PROPERTIES - PLEASE DON'T DELETE THIS LINE TO AVOID DUPLICATE PROPERTIES */ .imageborder {

}

div.span1 { color: magenta; }

div.span2 {

}

div.row-fluid {

}

div.span3 {

}

div.span4 {

}

div.span5 {

}

div.span9 {

}

My actual rules are in another CSS file. I tried to add a rule to one of the selectors (span1), but it didn't help.


Sebastiaan Janssen 26 Jul 2013, 10:26:49

It seems to have something to do with the period in the alias. If I only have h1, it works, if I have h1.span1 then I get the same error.


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category: Editor

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.3

Due in version:

Sprint:

Story Points:

Cycle: