Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-1109

HTMLArea crash with enableInlineTableEditing on hidden htmleditors

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.9.22
    • 2.9.21
    • Inline Editor
    • None
    • Firefox 3.0, Firefox 3.5

      When editing an ODF content (with htmleditors hidden in tabs), many JS error popups are displayed one after the other (see screenshot).
      It seems there is a problem with htmlarea.js when executing this block, introduced in version 2.9.20 :

      if (!HTMLArea.is_ie)
      {
      	// disable firefox accelerators on tables
      	editor.execCommand('enableInlineTableEditing', false, false);
      }
      

      Maybe creating the htmlarea in "no debug" mode will resolve the problem.

          [CMS-1109] HTMLArea crash with enableInlineTableEditing on hidden htmleditors

          Resolved with Raphaël's patch : disables table handling only when the editor receives its first event.

          Nicolas Gavalda (Inactive) added a comment - Resolved with Raphaël's patch : disables table handling only when the editor receives its first event.

          We could also do something like this (see attachment)

          Raphaël Franchet added a comment - We could also do something like this (see attachment)

          This error is probably due to hidden htmleditors.

          At least we could do some sort of hack, like this one

          if (!HTMLArea.is_ie)
          {
              var debugVal = this.config.debug;
              this.config.debug = false;
              try 
              {
                  // disable firefox accelerators on tables
                  editor.execCommand('enableInlineTableEditing', false, false);
              }
              catch (e)
              {
                   // nothing
              }
              this.config.debug = debugVal;
          }
          

          Raphaël Franchet added a comment - This error is probably due to hidden htmleditors. At least we could do some sort of hack, like this one if (!HTMLArea.is_ie) { var debugVal = this .config.debug; this .config.debug = false ; try { // disable firefox accelerators on tables editor.execCommand( 'enableInlineTableEditing' , false , false ); } catch (e) { // nothing } this .config.debug = debugVal; }

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: