verbb / vizy

A flexible visual editor for Craft CMS
Other
44 stars 8 forks source link

<br> not rendering #54

Closed dGilli closed 3 years ago

dGilli commented 3 years ago

Description Hard breaks "
" not rendering.

Steps to reproduce

  1. Insert hard break with "shift + enter" in vizy field.

  2. should be rendered as line break.

Additional info

Additional context The break is present in the fields html view and when outputting via {{ dump(entry.vizyField.getRawNodes()) }}:

array(1) {
    ["type"]=>
    string(9) "hardBreak"
}

When rendered with .renderHtml() the break is no there.

adrienpicard commented 3 years ago

Having the same issue with a <hr> tag. Possibly related to all self closing tags? Noticed that renderNode breaks out when it's the case.

engram-design commented 3 years ago

Fixed for the next release. To get the fix early, change your verbb/vizy requirement in composer.json to:

"require": {
  "verbb/vizy": "dev-craft-3 as 1.0.3",
  "...": "..."
}

Then run composer update.

engram-design commented 3 years ago

Fixed in 1.0.4