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

Javascript error trying to paste an iframe html in a literal html tag

    Details

      Description

      When trying to paste an iframe (for example and embed youtube code) inside a literal tag having class html i'm getting this javascript version in the browsers cited above

      Error looks like

      Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

        Issue Links

          Activity

          Hide
          Carlos Revillo added a comment -

          Steps to reproduce

          • Enable html class for literal tag
          • Create an article
          • Add a literal tag with html tag
          • Try to paste this code inside the tag: <iframe width="640" height="360" src="//www.youtube.com/embed/OoUoiciqtVU?rel=0" frameborder="0" allowfullscreen></iframe>
          Show
          Carlos Revillo added a comment - Steps to reproduce Enable html class for literal tag Create an article Add a literal tag with html tag Try to paste this code inside the tag: <iframe width="640" height="360" src="//www.youtube.com/embed/OoUoiciqtVU?rel=0" frameborder="0" allowfullscreen></iframe>
          Hide
          Carlos Revillo added a comment -
          Show
          Carlos Revillo added a comment - Proposed patch in https://github.com/ezsystems/ezpublish-legacy/pull/1055
          Show
          Yannick Roger (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-legacy/commit/a628338446fcf30d5fc83041575b368a711dc36c
          Hide
          Eduardo Fernandes (Inactive) added a comment -

          QA Tested and Approved

          Show
          Eduardo Fernandes (Inactive) added a comment - QA Tested and Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Carlos Revillo
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: