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

JS error with embed images

    XMLWordPrintable

Details

    Description

      An error JS occures when the embed image has an "alignment" and no "class".

      The JS error is :

      TypeError: args.class is null
      args['class'] = args['class'].replace( /ezoeAlign\w+/, '' );
      

      You can fix the issue in :
      /extension/ezoe/design/standard/templates/ezoe/tag_embed_images.tpl, line 62 :
      if ( args['align'] )
      becomes
      if ( args['align'] && args['class'] )

      Steps to reproduce

      Add an embed image in the OE. Set an alignment, don't set any class, and press ok.

      Attachments

        Activity

          People

            unknown unknown
            fiber_optic fiber_optic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: