3 Replies Latest reply on Sep 22, 2011 4:51 AM by teri-chan

    rich:editor freezing rich:tab in 4.1 M1

    teri-chan

      Hi,

      i am using Richfaces 4.1 M1, and i have a TabPanel with two tabs, one of them containing a rich:editor.

       

      As long as I stay on this tab, no problem, but if i switch tabs and then come back to the first tab (the one containing the editor), the tabpanel freezes, and i can't switch tabs anymore.

       

      I tried removing my components one after another, the problem is definitely coming from the rich:editor.

       

      What could be the source of this problem?

       

      Thanks

        • 1. Re: rich:editor freezing rich:tab in 4.1 M1
          teri-chan

          I have more information.

           

          Inspecting the page with Firebug, i can see an error in the console when the tab freezes:

           

          $this.ckeditor is null

          $this.ckeditor.updateElement();

           

          Looking at the source in editor.js.jsf, the line that caused the error is:

           

          rf.ui.Editor = function(componentId, domBinding, options) {

          [...]

           

                  this.__updateElement = function() {

                      $this.ckeditor.updateElement();

                  }

          • 2. Re: rich:editor freezing rich:tab in 4.1 M1
            teri-chan

            I don't know if it's related, but i just saw another strange behavior.

             

            When i try to change tab in IE9 (without compatibility mode), instead of switching tab, the second tab appears under the first one. If i use compatibilty mode, it works juste fine. I thought RF 4 was IE9-compatible?

            • 3. Re: rich:editor freezing rich:tab in 4.1 M1
              teri-chan

              Both problems solved, using switchType="client"...