U4-10592 - Stylesheet in RTE fails if you add a 'code' element style

Created by Chriztian Steinmeier 25 Oct 2017, 22:46:34 Updated by Chriztian Steinmeier 25 Oct 2017, 22:46:34

Steps to reproduce:

  • Add a Stylesheet
  • Add a child rule with the name "Code"
  • Change the alias to "code"
  • Save the rule
  • Add the stylesheet to a RichText Editor
  • Edit a page using the RichText Editor. Select some text and click the Formats button/dropdown to choose the code option

Observe that no dropdown appears and no {{}} tags are added to the text, and that the browser's developer console logs a JS error:

{{TypeError: undefined is not an object (evaluating 'i.parentsRequired')}} in tinymce.min.js

Note: It is not enough to rename the alias to something else - it is necessary to delete the rule before the Formats dropdown works again.


Priority: Normal

Type: Bug

State: Submitted


Difficulty: Normal

Category: Editor

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.1, 7.7.2, 7.7.4

Due in version:


Story Points: