5 Replies Latest reply on Dec 7, 2009 6:31 AM by nbelaevski

    rich:editor, modal panel and mozilla

      Does really the rich:edito has a problem with in a modal panel? in Mozilla the rich editor (in a modalPanel) seems to be disabled. Like something is not rendered correctly. This does not happen always, but still happens a lot. Thanks!

        • 1. Re: rich:editor, modal panel and mozilla
          ilya_shaikovsky

          It's known issue. And caused by the fact that editor failed to initialize fine when changes the DOM tree position. And our modal panel repositioned to body on opening by default because of some possible problems with overlapping relatively positioned elements. So use domElementAttachment="parent" at modal panel.

          • 2. Re: rich:editor, modal panel and mozilla
            nimo22

            hello,

            got the same problem, I use domElementAttachment="parent" - this does not render the editor:

            <ui:composition>
            
            <rich:modalPanel domElementAttachment="parent"..>
            <rich:editor ../>
            </rich:modalPanel>
            
            </ui:composition>


            using this. all works fine:

            <ui:composition>
            
            <rich:editor rendered="false" ../>
            
            <rich:modalPanel domElementAttachment="parent"..>
            <rich:editor ../>
            </rich:modalPanel>
            
            </ui:composition>


            so you see, I have to put a additiona rich:editor outside of rich:modalPanel, to get the rich:editor inside of my modalPanel to work.


            Another thing is, when using not domElementAttachment="parent", then rich:editor renders within the modalPanel, but I cannot type any words into the editor as something blocks - very odd..

            I use the actual rf 3.3.2 SR1.

            • 3. Re: rich:editor, modal panel and mozilla
              nbelaevski

               

              so you see, I have to put a additiona rich:editor outside of rich:modalPanel, to get the rich:editor inside of my modalPanel to work.

              When rich:editor is added by AJAX it is not able to load its resorces, this do the trick

              Another thing is, when using not domElementAttachment="parent", then rich:editor renders within the modalPanel, but I cannot type any words into the editor as something blocks - very odd..

              That's a known issue. Usage of "domElementAttachment" is a workaround for it.

              • 4. Re: rich:editor, modal panel and mozilla
                nimo22

                hello nick,


                When rich:editor is added by AJAX it is not able to load its resorces, this do the trick


                nice trick, right:)

                So it is not possible to load its resorces when the editor is called via ajax?

                If so, then it would be fine to tell this trick via rf-manual under rich:editor.





                • 5. Re: rich:editor, modal panel and mozilla
                  nbelaevski

                   

                  So it is not possible to load its resorces when the editor is called via ajax?

                  If so, then it would be fine to tell this trick via rf-manual under rich:editor.

                  I thought it's there. Please file documentation RFC if not.