22 Aug 2012
15 Jun 2007
Link to this post
I have actually already done this. I even went a step further and added in a drop down list to allow the user to switch between the themes setup for the site. This loads a css file for the given theme selected.
The issue that is a problem is that if you add certain tags to the html in the editor and then save your changes, you get two different looks. For example, using your demo on this website. I can go and create a new Generic Content item, and then place an unordered list into the editor. The list looks fine with spacing and shows as a list with dots. Then once you save your changes, the text now looks like you just typed in text with line breaks. The same goes for the paragraph tags. If you add content wrapped with the paragraph tag, in the editor you have proper spacing. But once you save your changes and view the results, all of the text is stacked on top of each other without spacing.
Why is it that the editor displays the text one way just using the standard html elements and then you get a different view when you view the content either in the admin section or on the actual site? Shouldn't the two match with just plain element tags? Now I know I can add a style sheet to the editor and to the admin section controls/pages to adjust this, I just think they should look the same without having to do this. If I want it to look different then I need to make adjustments.