Closed eliasfernandez closed 3 years ago
When html loaded from a field is not wrapped on nodes js fails on line 30:
$shadowEditor = $(editor.element.$.innerText),
Forcing a wrap of the innerText value solves it:
$shadowEditor = $("<div>").append(editor.element.$.innerText),
It is possible when rte is configured to not autowrap empty lines with <p> tags
<p>
solved by #114
When html loaded from a field is not wrapped on nodes js fails on line 30:
$shadowEditor = $(editor.element.$.innerText),
Forcing a wrap of the innerText value solves it:
$shadowEditor = $("<div>").append(editor.element.$.innerText),
It is possible when rte is configured to not autowrap empty lines with
<p>
tags