Can't you handle it using a textstring property for your heading and then have your code in the template instead?
Otherwise I think you should have a look at the umbracosettings.config and disable tidy perhaps? Maybe you can also work some magic by having a look at the options in the tinymceeditor.config file.
The reason I approached it this way is the template contains markup for all pages and nodes contain markup for each specific page. The markup I'm putting in the RTE is specific to a single page.
But your comments have given me some alternatives to explore for how I'm structuring the information.
So if I understand correctly it's the h1 element you want to style different than on other pages?
Then you should be able to add a class to it either using the html view or using the "style" button - it requires that you define the class in your RTE stylesheet though.
Hope you have enought pointers and ideas to get it solved somehow :-)
All the markup I mentioned is to be styled different than other pages (using CSS). The "featureBox" has a background image and the "innerBox" is floating inside and contains the h1 heading.
Thanks to your suggestion, I can prevent tidy from modifying the markup in the RTE by setting <TidyEditorContent>false</TidyEditorContent> in umbracoSettings.config. (original problem solved!)
But now I'm considering other options that may be better for structuring the content.
Publishing document modifies property
Hello Umbraco Colleagues,
I have a problem when I publish a document with a rich text property.
The original value is:
<div id="featureBox">
<div id="innerBox">
<h1>Welcome!</h1>
</div>
</div>
but publishing it removes the "innerBox" div.
<div id="featureBox">
<h1>Welcome!</h1>
</div>
I can't figure out how to keep the markup I want in the rich text property.
Any ideas would be greatly appreciated.
David Hill
Hi David
Is the markup written in the RTE or in the template?
/Jan
Hi Jan,
The markup is written in the RTE.
David
By the way - this is in Umbraco v 4.5.2
Thanks, David
Hi David
Is there any particular reason for this?
Can't you handle it using a textstring property for your heading and then have your code in the template instead?
Otherwise I think you should have a look at the umbracosettings.config and disable tidy perhaps? Maybe you can also work some magic by having a look at the options in the tinymceeditor.config file.
Hope this helps
/Jan
By the way - this is in Umbraco v 4.5.2
Thanks, David
Jan,
Thanks for the suggestions.
The reason I approached it this way is the template contains markup for all pages and nodes contain markup for each specific page. The markup I'm putting in the RTE is specific to a single page.
But your comments have given me some alternatives to explore for how I'm structuring the information.
Thank you.
So if I understand correctly it's the h1 element you want to style different than on other pages?
Then you should be able to add a class to it either using the html view or using the "style" button - it requires that you define the class in your RTE stylesheet though.
Hope you have enought pointers and ideas to get it solved somehow :-)
/Jan
All the markup I mentioned is to be styled different than other pages (using CSS). The "featureBox" has a background image and the "innerBox" is floating inside and contains the h1 heading.
Thanks to your suggestion, I can prevent tidy from modifying the markup in the RTE by setting <TidyEditorContent>false</TidyEditorContent> in umbracoSettings.config. (original problem solved!)
But now I'm considering other options that may be better for structuring the content.
Thank you very much,
David
is working on a reply...