netresearch / t3x-rte_ckeditor_image

Image support in CKEditor for the TYPO3 ecosystem
GNU Affero General Public License v3.0
56 stars 65 forks source link

Ckeditor load error on trying to get element from a multiple node html text #113

Closed eliasfernandez closed 3 years ago

eliasfernandez commented 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

mcmulman commented 3 years ago

solved by #114