richtexteditor stripping out attributes with certain values
I'm running into an issue where one of my content editors is trying to embed an object into a richtexteditor. object and param elements are in the allowed list. However, one of the params has a name attribute set to "name" whenever name="name", that whole attribute is removed. This is causing the javascript to not function properly since it can't find that param with name equal to "name". I'm guessing this is a tinyMCE issue with sanitization. How do I get it to not remove the attribute?
I think that you should raise this as a bug on GitHub. In Umbraco 10 it does not strip it if name='name' however in 12 and 13 it appears that it does strip out the name attribute if it's value equals 'name'
That makes sense. We used this same object before with no problem. But when it was added to the site, we were probably running Umbraco 10. I have a work around to get it working for now. I used our script element to inject the html object.
richtexteditor stripping out attributes with certain values
I'm running into an issue where one of my content editors is trying to embed an object into a richtexteditor. object and param elements are in the allowed list. However, one of the params has a name attribute set to "name" whenever name="name", that whole attribute is removed. This is causing the javascript to not function properly since it can't find that param with name equal to "name". I'm guessing this is a tinyMCE issue with sanitization. How do I get it to not remove the attribute?
This is running on Umbraco 13.1.1
could you post an example of the object you are trying to add to the RTE and I will have a look
The param with name="name" is the one that I'm having trouble with. It removes the name attribute if the value is "name".
Hi Dan,
I think that you should raise this as a bug on GitHub. In Umbraco 10 it does not strip it if name='name' however in 12 and 13 it appears that it does strip out the name attribute if it's value equals 'name'
That makes sense. We used this same object before with no problem. But when it was added to the site, we were probably running Umbraco 10. I have a work around to get it working for now. I used our script element to inject the html object.
is working on a reply...