Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22622

Pasting something (with ctrl+v) into a literal, raises an error in firebug

    Details

      Description

      When pasting text (with ctrl+v ) into a literal, an error is raised in firebug

      TypeError: o.node.firstChild.tagName is undefined
      	
       
      (642 out of range 90)
       
      anonymous (line 642)
      

      Note that the problem only occurs when we use paste from a keyboard shortcut (in my case, ctrl+v). If we use the paste option from the browser menus (top menu or right mouse click menu), the error is not present.

        Issue Links

          Activity

          Hide
          Ricardo Correia (Inactive) added a comment -

          Closing this issue, as it has already been fixed in EZP-23251.

          Show
          Ricardo Correia (Inactive) added a comment - Closing this issue, as it has already been fixed in EZP-23251 .
          Hide
          Joao Inacio (Inactive) added a comment -

          The problem is that o.node.firstChild is (currently) a TextNode, and it does not have a tagName property (nodeName instead)

          Should be resolved by https://jira.ez.no/browse/EZP-23251 (even though description specifies different content, iframe);
          I suggest closing this ticket as duplicate.

          Show
          Joao Inacio (Inactive) added a comment - The problem is that o.node.firstChild is (currently) a TextNode, and it does not have a tagName property (nodeName instead) Should be resolved by https://jira.ez.no/browse/EZP-23251 (even though description specifies different content, iframe); I suggest closing this ticket as duplicate.
          Hide
          Paulo Nunes (Inactive) added a comment -

          This issue only happens on windows environment. If i do the same test within a linux environment, no problem occurs.

          Show
          Paulo Nunes (Inactive) added a comment - This issue only happens on windows environment. If i do the same test within a linux environment, no problem occurs.
          Hide
          Paulo Nunes (Inactive) added a comment -

          I just intalled RC1 and did the following:

          • create an article (do not publish)
          • Open firebug
          • On summary field, write "Test"
          • press "return" key once or twice
          • Click the "Insert literal text" icon. Leave the class as "none" and press ok button
          • With the mouse, select the "Test" word
          • click ctrl+c key to copy (you can also use the right menu, using the mouse, to copy)
          • with the mouse, goto inside literal box
          • press ctrl+v keys

          In the last step, i have the error in firebug.

          Additional notes:

          • i'm using firefox 29 on a windows 7 OS;
          • The same error happens if o use IE11;
          • The error do not happen if i do the same steps on a linux environment;
          • For comparison, i fetched a virtualbox VM (win 8,1 with IE11) from http://www.modern.ie/en-us/virtualization-tools to double-check. The error also happened.
          Show
          Paulo Nunes (Inactive) added a comment - I just intalled RC1 and did the following: create an article (do not publish) Open firebug On summary field, write "Test" press "return" key once or twice Click the "Insert literal text" icon. Leave the class as "none" and press ok button With the mouse, select the "Test" word click ctrl+c key to copy (you can also use the right menu, using the mouse, to copy) with the mouse, goto inside literal box press ctrl+v keys In the last step, i have the error in firebug. Additional notes: i'm using firefox 29 on a windows 7 OS; The same error happens if o use IE11; The error do not happen if i do the same steps on a linux environment; For comparison, i fetched a virtualbox VM (win 8,1 with IE11) from http://www.modern.ie/en-us/virtualization-tools to double-check. The error also happened.
          Hide
          Damien Pobel (Inactive) added a comment -

          I can not reproduce this issue so can you give more details, especially what are you trying to paste and how the literal was created (just by clicking on the icons in ezoe or maybe there were some contents inside it already or ... ?)

          Show
          Damien Pobel (Inactive) added a comment - I can not reproduce this issue so can you give more details, especially what are you trying to paste and how the literal was created (just by clicking on the icons in ezoe or maybe there were some contents inside it already or ... ?)
          Hide
          André Rømcke added a comment -

          Can not be reproduced, more info on how this is done, what is done before it and what is being copy pasted from where would help.

          Show
          André Rømcke added a comment - Can not be reproduced, more info on how this is done, what is done before it and what is being copy pasted from where would help.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: