U4-7851 - Grid layout RTE formats not being applied.

Created by Rasmus Eeg Møller 28 Jan 2016, 06:33:12 Updated by Simon Busborg 02 Feb 2016, 13:15:51

What did you do? Crete new style sheet in settings, and add the following formats:

  • a.btn.btn-primary as button
  • h1 as heading Created a default grid layout, selected the new style with the formats. Added new section and row with an RTE editor. Added heading "Lorem ipsum" Added link "click here" and select format: button

What did you expect to happen? The format being applied

What actually happened? The format was not applied, and i lost focus from the rte editor. The focus is annoying when applied formats.

1 Attachments

Comments

Simon Busborg 28 Jan 2016, 13:21:03

Hi @rasmuseeg, TinyMCE strips as default the id atrribute from span, I've allowed them into our extended valid elements, so this no longer should be a problem.

Another way to solve it is to change the RTE style aliases not to use id's but classes since id's are something the devil invented :)

I've made a pull request to fix this issue. Test it by adding more styles to the RTE styles that uses id's.

PR here: https://github.com/umbraco/Umbraco-CMS/pull/1072


Rune Strand 02 Feb 2016, 12:47:39

@rasmuseeg afaik you cannot add multiple classes to an element using RTE styles. If you need to use {{.btn.btn-success}} you need to combine the CSS to one class.

It is also not possible to use anchor tags, that is what the insert/edit link button is for :)


Simon Busborg 02 Feb 2016, 13:15:47

@rune fixed issue when the rte lost focus, it's been reviews and merged https://github.com/umbraco/Umbraco-CMS/pull/1072


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category: Editor

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.4.0

Due in version: 7.4.0

Sprint: Sprint 8

Story Points:

Cycle: