Top tip: touching the web.config works as an easy restart.
The problem eventually boiled down to: the valid elements configuration string was not working as advertised. Even though I had explicitly allowed spans to have the lang attribute, this was not being honored.
Solution: By adding @[lang] (allows this attribute for all elements) at the beginning of the valid elements configuration string, the rte stopped stripping it out.
NB: this was discovered by wiping the string down to it's opening and closing tags, then adding @[lang], then, once that worked, adding the rest of the string back in.
RTE span - lang attribute
Is there are second config of some kind for the RTE?
I have enabled lang attributes for
<span>
in tinyMceConfig. (,span[class|lang],
)If I:
<>
button) in an editor<a lang="en">
and<span lang="en">
the
<a>
tag retains the attribute but the<span>
has it stripped out!?!Any thoughts? It works fine in tinyMCE fiddles, so I'm fairly certain it is an Umbraco issue.
Hi Ault,
Did you restart the app after tinyMceConfig change?
Alex
Restarting was not the issue.
Top tip: touching the web.config works as an easy restart.
The problem eventually boiled down to: the valid elements configuration string was not working as advertised. Even though I had explicitly allowed spans to have the lang attribute, this was not being honored.
Solution: By adding
@[lang]
(allows this attribute for all elements) at the beginning of the valid elements configuration string, the rte stopped stripping it out.NB: this was discovered by wiping the string down to it's opening and closing tags, then adding
@[lang]
, then, once that worked, adding the rest of the string back in.is working on a reply...