We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33300
    • 18 Posts
    Hi folks!

    Have a problem in the RTE, with the CSS Styles. My xHtml template looks like this:

    <p class="name1 name2">Text</p>

    In my CSS File i have defined:

    p

    .name1

    .name2

    I have importet "name1" and "name2" in my RTE but i cant select them both. And even one makes a preoblem because the code looks like this:

    <p><span class="name1">Text</span></p>

    Not quite like i want it to be wink
    Can I somehow change that? I want name1 and name2 class in one and both in the p smiley
    Otherwise it just dont looks like my template used to look...
    Or maybe there is an other trick wink

    greetz z00la
      • 33992 ☆ A M B ☆
      • 455 Posts
      Hi,
      I think, this code works:
      <p class="name2"><span class="name1">Text</span></p>



      Thanks
      AHHP
        God loves me. 【ツ】


        MODX.ir (Persian Support)

        Boplo.ir/modx/ (Persian)
        • 33300
        • 18 Posts
        thx for the reply albert!

        But the problem is, if i select a css style from the quick edit, it goes into the span and not into the p.
        i cant put something in p, only in span. and its not possible to put 2 styles in it.

        even if i first select a praragraph and try to take a style after it, it dont works, i come out with this:

        <p><span class="name1">txt</span></p>

        maybe their just isnt a way to put a class into p without editing in html huh
          • 33992 ☆ A M B ☆
          • 455 Posts
          If the class which you need for <p> is for a many lines in your page, i suggest do like this:
          <div class="name2">
          .
          <p><span class="name1">txt1</span></p>
          .
          <p><span class="name1">txt2</span></p>
          .
          </div>

          and if you need the class for <p> only for special lines, editing HTML willbe easy.

          anyway
          You can see topics and post about TinyMCE at links below for sloving problems completely.
          Rich Text Editors & File Browser
          Support/Comments for TinyMCE
          and...

          Thanks
          AHHP
            God loves me. 【ツ】


            MODX.ir (Persian Support)

            Boplo.ir/modx/ (Persian)
            • 33300
            • 18 Posts
            Well, for myself it sure is no problem to edit everything in html, since i also made my site in xhtml strict/css. but I try to make it as easy as possible for
            users without any knowledge of html/css to edit their page (since that is what a cms should do for me).

            Ill try to get some infos from the links u posted, thx a lot for that!

            greetings z00la