Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    May 14, 2013 @ 15:00
    Anthony Candaele
    0

    issue creating style for TinyMCE Editor

    Hi,

    I'm trying to create a style definion that add a <h2> tag with the class of '.green' to the tag but this doesn't seem to work very well

    In the 'alias' field of the style editor, I can only submit a tag (eg h2) or a class (eg .green), but trying to combine both, like h2.green doesn't work.

    Anyone found a solution for this?

    Thanks,

    Anthony

  • Fuji Kusaka 2203 posts 4220 karma points
    May 14, 2013 @ 15:53
    Fuji Kusaka
    0

    Hi Anthony,

    May be you could check in your RTE for any h2 tags and replace it or may be join the h2 tag with .green class ?

    if(@Model.Where("Rte.Contains(\"<h2>\")")){
    // Replace or Joins them  
    }

    I havent try it myself just an idea 

Please Sign in or register to post replies

Write your reply to:

Draft