2 Replies Latest reply on Mar 20, 2012 6:04 PM by Adrien Adrien

    Migration rich:editor RF 3.3 to RF 4.2 problem : html tags removed

    Adrien Adrien Apprentice

      Hi,

      I'm currently migrate a rich:editor from rf3.3 to rf4.2.

      In RF3.3  I initialiaze editor with a html page (ex: <html><head>...</head><body> blablalba </body></html>) .

      In RF4.2 When I initialiaze with the same html page, then editor 'remove' all parts about html head body, in the exemple before the editor has only <p>blablabla</p>

      I've found not option to configure it, do you know if it s possible that the editor can edit a full html page?

      Thanks for your help

        • 1. Re: Migration rich:editor RF 3.3 to RF 4.2 problem : html tags removed
          Adrien Adrien Apprentice

          I've found this :http://nightly.ckeditor.com/7403/_samples/fullpage.html

          I 'm trying it like that, but it doesn t work, on submit html head and body tag are removed, do you know if it is good usage to configure editor?

          Thanks

           

          {code}    <script type="text/javascript">

                               CKEDITOR.replace( 'editor1',

                                                         {

                                                                fullPage : true,

                                                                 extraPlugins : 'docprops'

                                                            });

                   </script>

                      <rich:editor id='editor1'  autoResize="true"    value="#{ctrlAdminSendEmails.msg}"  toolbar="full" required="true"  >

           

                      </rich:editor>

          {code}

           

          don't work too

           

          {code} <rich:editor  onsetup="setup(this);"  id="editor1"   autoResize="true"    value="#{ctrlAdminSendEmails.msg}"  toolbar="full" required="true"  >

                      <f:facet name="config">

                                      CKEDITOR.replace( 'editor1',   { fullPage : true,extraPlugins : 'docprops'  });

           

           

                                 </f:facet>

                    

                      </rich:editor>

          {code}

           

          -r

          • 2. Re: Migration rich:editor RF 3.3 to RF 4.2 problem : html tags removed
            Adrien Adrien Apprentice

            Here is the solution :

             

            <rich:editor   id="editmail"   autoResize="true"    value="#{ctrlAdminSendEmails.msg}"  toolbar="full" required="true"  >

                                  <f:facet name="config">

                                                   fullPage : true,extraPlugins : 'docprops'

                                                         </f:facet>          

            </rich:editor>