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

          Paulo Nunes (Inactive) created issue -
          Paulo Nunes (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Paulo Nunes (Inactive) made changes -
          Description When pasting text (with ctrl+v ) into a literal, an error is raised in firebug

          {noformat}
          TypeError: o.node.firstChild.tagName is undefined


          (642 out of range 90)

          anonymous (line 642)
          {noformat}
          When pasting text (with ctrl+v ) into a literal, an error is raised in firebug

          {noformat}
          TypeError: o.node.firstChild.tagName is undefined


          (642 out of range 90)

          anonymous (line 642)
          {noformat}

          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.
          André Rømcke made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Status InputQ [ 10001 ] Confirmed [ 10037 ]
          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.
          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 ... ?)
          Damien Pobel (Inactive) made changes -
          Summary (EZOE) Pasting something (with ctrl+v) into a literal, raises an error in firebug Pasting something (with ctrl+v) into a literal, raises an error in firebug
          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
          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.
          Ricardo Correia (Inactive) made changes -
          Affects Version/s 5.3.2 [ 13483 ]
          Affects Version/s 5.3.1 [ 13482 ]
          Affects Version/s 5.3 [ 11282 ]
          Ricardo Correia (Inactive) made changes -
          Fix Version/s Customer request [ 11018 ]
          Paulo Lopes (Inactive) made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Damien Pobel (Inactive) made changes -
          Assignee Damien Pobel [ damien.pobel@ez.no ]
          Joao Inacio (Inactive) made changes -
          Link This issue relates to EZP-23251 [ 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.
          Ricardo Correia (Inactive) made changes -
          Link This issue duplicates EZP-23251 [ EZP-23251 ]
          André Rømcke made changes -
          Status InputQ [ 10001 ] Confirmed [ 10037 ]
          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 .
          Ricardo Correia (Inactive) made changes -
          Assignee Damien Pobel [ damien.pobel@ez.no ]
          Status Confirmed [ 10037 ] Closed [ 6 ]
          Resolution Duplicate [ 3 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 62717 ] EZ* Development Workflow [ 84932 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 84932 ] EZEE Development Workflow [ 123645 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          2m 48s 1 Paulo Nunes 09/Apr/14 5:08 PM
          Confirmed Confirmed InputQ InputQ
          152d 12h 38m 2 Paulo Lopes (Inactive) 12/Sep/14 8:01 PM
          InputQ InputQ Confirmed Confirmed
          8d 5h 45m 2 André Rømcke 17/Sep/14 11:33 AM
          Confirmed Confirmed Closed Closed
          17m 24s 1 ricardo.correia@ez.no 17/Sep/14 11:50 AM

            People

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

              Dates

              • Created:
                Updated:
                Resolved: