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

    Rich editor custom plug-in

      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

        • 1. Re: Rich editor custom plug-in
          ilya_shaikovsky

          Does it works using just tinyMCE widget instead of RichFaces component? If works the same try to check tinyMCE knowledgebase. We do not changed the original tinyMCE processing behaviour. We made special conversions only if SeamText is used to make it valid for seamText.