Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David F. Hill 122 posts 242 karma points
    Nov 14, 2010 @ 05:32
    David F. Hill
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 14, 2010 @ 13:32
    Jan Skovgaard
    1

    Hi David

    Is the markup written in the RTE or in the template?

    /Jan

  • David F. Hill 122 posts 242 karma points
    Nov 14, 2010 @ 19:16
    David F. Hill
    0

    Hi Jan,

    The markup is written in the RTE.

    David

  • David F. Hill 122 posts 242 karma points
    Nov 14, 2010 @ 19:20
    David F. Hill
    0

    By the way - this is in Umbraco v 4.5.2

    Thanks, David

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 14, 2010 @ 19:37
    Jan Skovgaard
    1

    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

  • David F. Hill 122 posts 242 karma points
    Nov 14, 2010 @ 19:38
    David F. Hill
    0

    By the way - this is in Umbraco v 4.5.2

    Thanks, David

  • David F. Hill 122 posts 242 karma points
    Nov 14, 2010 @ 19:47
    David F. Hill
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 14, 2010 @ 19:50
    Jan Skovgaard
    0

    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

  • David F. Hill 122 posts 242 karma points
    Nov 14, 2010 @ 20:14
    David F. Hill
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft