I can't figure out how to allow style tags in the RTE. I've tried allowing them in validElements. It doesn't seem to even get to that point. They are being stripped out somehow when I switch from code view back to editor view, before I try to save the page. Is there some basic setting I'm missing?
Yes, we can add stylesheets. However we would like the ability to add style tags on a page by page basis if possible. We may have some landing pages on the site that have a very different look and feel.
We accidentally had the same discussion today. We would like to embed some 'things' that contains styles, scripts and more.
I think you should search for another approach and not using RTE for this purposes. Rich content editors are mainly for textual editing.
Maybe you can add a property on you landing page content type that selects the right stylesheet? When you have a lot of different styles for RTE I think the default approach to add styles to RTE is not going to work well.
Allow <style> tags in RTE
I can't figure out how to allow style tags in the RTE. I've tried allowing them in validElements. It doesn't seem to even get to that point. They are being stripped out somehow when I switch from code view back to editor view, before I try to save the page. Is there some basic setting I'm missing?
Hi Andrew
Did you try to add stylesheet file to RTE? Go to Developers section => Data Types => select RTE you use =>
in "Stylesheets" block choose the file you need to add to RTE
Thanks,
Alex
Yes, we can add stylesheets. However we would like the ability to add style tags on a page by page basis if possible. We may have some landing pages on the site that have a very different look and feel.
We accidentally had the same discussion today. We would like to embed some 'things' that contains styles, scripts and more.
I think you should search for another approach and not using RTE for this purposes. Rich content editors are mainly for textual editing.
Maybe you can add a property on you landing page content type that selects the right stylesheet? When you have a lot of different styles for RTE I think the default approach to add styles to RTE is not going to work well.
is working on a reply...