Skip to content

Empty field outputs <p>&nbsp;</p> #5

Description

@CreateSean

ckeditor 1.0.0-beta.2
craft 3.0.1

I'm using the ckeditor and found this bug when setting a conditional to only display content if the field contains data.

      {% if entry.overview|length %}
        <h2>Asset Overview</h2>
        <div class="overview">
          {{ entry.overview }}
        </div><!-- /.overview -->
      {% endif %}

On the front end I expect nothing to display, but that doens't happen because ckeditor is outputting this

<p>&nbsp;</p>

Please advise

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions