U4-10591 - TinyMCE configuration - use of extendedValidElements in propertyeditors/rte/rte.controller.js

Created by Mike Chambers 25 Oct 2017, 16:13:06 Updated by Mike Chambers 25 Oct 2017, 16:17:25

//These are absolutely required in order for the macros to render inline
//we put these as extended elements because they get merged on top of the normal allowed elements by tiny mce
var extendedValidElements = "@[id|class|style],-div[id|dir|class|align|style],ins[datetime|cite],-ul[class|style],-li[class|style],span[id|class|style]";

Using this means that use of

<config key="extended_valid_elements">[MY EXTENDED_VALID_ELEMENTS]</config>
``` in the tinymceconfig.config can't be used for enduser extended_valid_elements.

as the value is not JSON (as with style_formats)

angular.extend(baseLineConfigObj, tinyMceConfig.customConfig);

 replaces rather than merges the values.

So bit of a conundrum, break the macro insertion and have my extended_valid_elements... or work around the extended_valid_elements I needed by polluting the valid_elements.


Priority: Normal

Type: Bug

State: Submitted


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.7.1

Due in version:


Story Points: