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

Unable to make an IsInline[externalimage]=image custom tag inline (fix available)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.4.0
    • 3.9.0alpha1, 4.2.0, 4.3.0, 4.4.0alpha1
    • None
    • Testing up to eZ Publish 4.3

    Description

      As documented in extension/ezoe/settings/content.ini.append.php:

      ## Will use custom image if there is a custom attribute on the tag named 'image_url'
      #IsInline[externalimage]=image
      

      However, this prevents you from having an inline, image-represented custom tag. Any attribute with this setting is placed on a new line after saving.

      The problem is line 268 of kernel/classes/datatypes/ezxmltext/ezxmlschema.php

      if ( $this->Schema['custom']['isInline'][$name] == 'true' )

      Should be:

      if ( (bool) $this->Schema['custom']['isInline'][$name] )

      I know that this is technically a general eZP bug but it only manifests itself in functionality enabled by the Online Editor.

      Steps to reproduce

      1. Create a custom tag meant to display an image in the Online Editor with the IsInline[tag_name]=image
      2. Insert the tag inline, and then store your draft.
      3. The tag will be placed onto a new line.

      Attachments

        Activity

          People

            andre1 andre1
            3427b0be-ab4e-4614-8af1-1719f7f23944@accounts.ibexa.co Peter Keung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: