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

As an editor, I want to define a custom tag from the Online Editor

    Details

    • Type: Story Story
    • Status: Closed
    • Priority: High High
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When clicking the button that inserts a custom tag, a dialog must be shown that allows the editor to enter:

      • the tag's main content
      • the tag's custom attributes, depending on which were defined

        Activity

        Bertrand Dunogier created issue -
        Bertrand Dunogier made changes -
        Field Original Value New Value
        Epic Link EZP-25357 [ 52851 ]
        Bertrand Dunogier made changes -
        Status Backlog [ 10000 ] Specification [ 10002 ]
        Bertrand Dunogier made changes -
        Description Template custom tags support custom attributes. In edit format:

        {code}
        <div data-ezelement="eztemplate"
            data-ezname="custom_tag_name"
            data-some-attribute="some-value"
        />
        {code}

        Those attributes are made available (needs to be verified) to the template that renders the tag into HTML.

        As a developer of such tags, it should be possible to define those attributes, with a few basic properties. These definitions can then be used to generate a simple UI that allow an editor to input those attributes. Example: an embedded video width and height.
        Template custom tags support custom attributes. In edit format:

        {code}
        <div data-ezelement="eztemplate"
            data-ezname="custom_tag_name"
            data-some-attribute="some-value"
        />
        {code}

        Those attributes are made available (needs to be verified) to the template that renders the tag into HTML.

        As a developer of such tags, it should be possible to define those attributes, with a few basic properties. These definitions can then be used to generate a simple UI that allow an editor to input those attributes. Example: an embedded video width and height.

        h3. Limitations

        For the time being, attributes in custom tags are not supported. This can therefore not be implemented. This is a blocker in regards to the specification, as the examples include custom attributes.
        Bertrand Dunogier made changes -
        Description Template custom tags support custom attributes. In edit format:

        {code}
        <div data-ezelement="eztemplate"
            data-ezname="custom_tag_name"
            data-some-attribute="some-value"
        />
        {code}

        Those attributes are made available (needs to be verified) to the template that renders the tag into HTML.

        As a developer of such tags, it should be possible to define those attributes, with a few basic properties. These definitions can then be used to generate a simple UI that allow an editor to input those attributes. Example: an embedded video width and height.

        h3. Limitations

        For the time being, attributes in custom tags are not supported. This can therefore not be implemented. This is a blocker in regards to the specification, as the examples include custom attributes.
        Template custom tags support custom attributes. In edit format:

        {code}
        <div data-ezelement="eztemplate"
            data-ezname="custom_tag_name"
            data-some-attribute="some-value"
        />
        {code}

        Those attributes are made available (needs to be verified) to the template that renders the tag into HTML.

        As a developer of such tags, it should be possible to define those attributes, with a few basic properties. These definitions can then be used to generate a simple UI that allow an editor to input those attributes. Example: an embedded video width and height.

        h3. Limitations

        For the time being, attributes in custom tags are not supported. This can therefore not be implemented. This is a blocker in regards to the specification, as the examples include custom attributes ([source code|https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/RichText/Converter/Render/Template.php#L70]).
        Bertrand Dunogier made changes -
        Summary As a developer, I want to define attributes for a custom type that show up in the Online Editor As a developer, I want to define attributes for a custom tag that show up in the Online Editor
        Bertrand Dunogier made changes -
        Description Template custom tags support custom attributes. In edit format:

        {code}
        <div data-ezelement="eztemplate"
            data-ezname="custom_tag_name"
            data-some-attribute="some-value"
        />
        {code}

        Those attributes are made available (needs to be verified) to the template that renders the tag into HTML.

        As a developer of such tags, it should be possible to define those attributes, with a few basic properties. These definitions can then be used to generate a simple UI that allow an editor to input those attributes. Example: an embedded video width and height.

        h3. Limitations

        For the time being, attributes in custom tags are not supported. This can therefore not be implemented. This is a blocker in regards to the specification, as the examples include custom attributes ([source code|https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/RichText/Converter/Render/Template.php#L70]).
        Template custom tags support custom attributes (actually, they do not). In edit format:

        {code}
        <div data-ezelement="eztemplate"
            data-ezname="custom_tag_name"
            data-some-attribute="some-value"
        />
        {code}

        Those attributes are made available (needs to be verified) to the template that renders the tag into HTML.

        As a developer of such tags, it should be possible to define those attributes, with a few basic properties. These definitions can then be used to generate a simple UI that allow an editor to input those attributes. Example: an embedded video width and height.

        h3. Limitations

        For the time being, attributes in custom tags are not supported. This can therefore not be implemented. This is a blocker in regards to the specification, as the examples include custom attributes ([source code|https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/RichText/Converter/Render/Template.php#L70]).
        Bertrand Dunogier made changes -
        Summary As a developer, I want to define attributes for a custom tag that show up in the Online Editor As an editor, I want to define a custom tag from the Online Editor
        Description Template custom tags support custom attributes (actually, they do not). In edit format:

        {code}
        <div data-ezelement="eztemplate"
            data-ezname="custom_tag_name"
            data-some-attribute="some-value"
        />
        {code}

        Those attributes are made available (needs to be verified) to the template that renders the tag into HTML.

        As a developer of such tags, it should be possible to define those attributes, with a few basic properties. These definitions can then be used to generate a simple UI that allow an editor to input those attributes. Example: an embedded video width and height.

        h3. Limitations

        For the time being, attributes in custom tags are not supported. This can therefore not be implemented. This is a blocker in regards to the specification, as the examples include custom attributes ([source code|https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/RichText/Converter/Render/Template.php#L70]).
        When clicking the button that inserts a custom tag, a dialog must be shown that allows the editor to enter:
        - the tag's main content
        - the tag's custom attributes, depending on which were defined
        Bertrand Dunogier made changes -
        Status Specification [ 10002 ] Closed [ 6 ]
        Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ]
        Resolution Duplicate [ 3 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Bertrand Dunogier
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: