Copied to clipboard

Flag this post as spam?

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


  • Ethan 41 posts 61 karma points
    May 28, 2010 @ 12:50
    Ethan
    0

    HTML source code does not take effect


    My site runs on Runway, I found the Html code function in content area of each page doesn't work, for example, when I set the color of the text, it just display the raw text, and when I recheck the source, the style statement disappeared. How to fix it? Thank you!

  • Jeff Grine 149 posts 189 karma points
    May 28, 2010 @ 14:53
    Jeff Grine
    0

    In config/tinyMceConfig.config there is a section called validElements. This tells you what attributes are allowed on what tags. So if, for example, you were trying to add style to a h2 tag - you would change -h2[id|dir|class|align] to -h2[id|dir|class|align|style]. Any attributes not listed get removed. I think the general idea is that designers should handle style in most cases, and these controls are primarily for editors.

    I think you can turn off this behavior altogether by setting TidyEditorContent to false in umbracoSettings.config.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies