AnsweredAssumed Answered

Richtext Editor + CSS not working

Question asked by power on Aug 5, 2008
Hi, alfresco experts

I am working on WCM and there is one webForm having some paragraph and ftl like below.
=========================================================================================

<#ftl ns_prefixes={"D", "http://www.te.com/alfresco/mars"}>

   <div class="top"> 
   </div>
      <div class="content">
         <h2>${homePageIntro.title}</h2>
      
         <p style="font-family:Trebuchet MS; font-size:12px">${homePageIntro.body} </p>
         
         <p><a href="${homePageIntro.textLink}">${homePageIntro.text}</a></p>
                           
      </div>
      <div class="bot">
         <img style="position: absolute;z-index: 2;margin-top: -370px;margin-left: -70px;" width="171" height="474" src="${homePageIntro.image}">                        
      </div>

Now my html is dynamically added to my home page.. but the css not working out. because the richtext editor using their own <p> tag to modify it.
I want my CSS to run for that bold line.

I want following line to come as my CSS
<p style="font-family:Trebuchet MS; font-size:12px">${homePageIntro.body} </p>

Any idea ?
Alfresco I think using Tiny MCE as their editor.. can I have idea to remove its own <p> tag with its own style and I can apply my own style.

Outcomes