1 Reply Latest reply on Oct 12, 2009 5:43 AM by Ilya Shaikovsky

    Rich editor custom plug-in

    Anu Anu Newbie

      Hello,
      I created a rich:editor custom plugin. It opens a new dialog and you can add code inside. Once you code, I add a html tag and I wanted the final html to be returned as below.

      
      <pre name="code" class="java"> this is a java code </pre>
      
      


      But I have observed that the java script adds this but when it come to the rich editor, it removes some part and becomes

      
      <pre class="java"> this is a java code </pre>
      
      


      On trial and error I could make out that anything like class="" is accepted. But tags like "name, clas" etc are not accepeted. I think that the html is always validated inside the rich:editor and only pre defined tags are permitted.

      But I want to add few custom tags.

      Please advice.

      Regards,
      Anu