Skip to content

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

@CreateSean

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions