Copied to clipboard

Flag this post as spam?

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


  • Donald 12 posts 32 karma points
    Mar 26, 2012 @ 18:27
    Donald
    0

    Only allow single style to be applied to RichText element

    I'm currently maintaining an Umbraco 4.7 site.  I have a document type with a RichText editor data type, using TinyMCE v3 as the WYSIWIG editor. 

    I have added 2 styles for use (floatLeft and floatRight).  The issue that I'm having is that I only want to add a single style to an element, whereas it looks like the default is to add multiple styles.

    E.g. I insert an image and add the style floatLeft, this does as expected and adds class="floatLeft".  Now, if I select that same element and choose the style floatRight and look at the HTML the class is now class="floatLeft floatRight" but I want it to overwrite the floatLeft, not append to it.  Is it possible to ensure that only 1 style is added at a time?

  • 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