Copied to clipboard

Flag this post as spam?

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


  • Magnus Janson 9 posts 88 karma points
    Jul 07, 2017 @ 12:09
    Magnus Janson
    0

    Rich text box Format doesn't appy

    I am trying some very basic steps using Umbraco Fanoe starter kit from the backoffice.

    One issue: When using the Rich text box feature to create content, the Format dropdown selection has no effect. Not in backoffice, not in the site. Everything is displayed with the same size. The other tools, such as Bold and Italic, work.

    Cheers...

  • James Collins 13 posts 34 karma points
    Jul 11, 2017 @ 19:56
    James Collins
    0

    The Format dropdown basically updates the underlying markup in the Rich Text Editor. So when you select some text and pick "Header 2" for instance, an id of "Header2" is added in the markup.

    The reason you don't see any effect is because there is no css for #Header2 in the Settings > Stylesheets > rte stylesheet.

    As a test, if you open that rte stylesheet in the settings section and add some css, it should start showing up. For instance, this would turn the text red:

    #Header2{ color: #ff0000; }

    If you wanted to see this on the site, you'd just need to make sure the rte.css stylesheet is added to the markup in the template.

  • Magnus Janson 9 posts 88 karma points
    Aug 07, 2017 @ 12:20
    Magnus Janson
    0

    Hi James,

    Yes, I found the rte stylesheet and have modified it. But the only place I see any actual effect is in the 'Preview' box in the 'Edit stylesheet properties' page in the backoffice. I still cannot see any changes when trying to apply formats in Rich Text Editor (still backoffice). In practice, looking at the HTML generated on my site, my text ends up like:

    <p>
        <span id="Header2">Here I am using Header 2</span>
    </p>
    

    Best from Magnus

  • Magnus Janson 9 posts 88 karma points
    Aug 07, 2017 @ 12:36
    Magnus Janson
    0

    Hi again,

    Now it works. I didn't realize I needed to add the rte.css to the master template to see changes in backoffice.

    Shouldn't this work out-of-the-box?

    Thanks. Sry for my ignorance.

Please Sign in or register to post replies

Write your reply to:

Draft