[ai_ckeditor] the ckeditor assistant is not usable with newlines
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3466966. --> Reported by: [wouters_f](https://www.drupal.org/user/721548) Related to !49 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I have a text with newlines. When I open the ckeditor tools (select the text and click Tone of voice) in the new (drupal form) a bunch of "undefined"s have been added. This is not really usable like this.<br> <img src="https://www.drupal.org/files/issues/2024-08-08/Screenshot%202024-08-08%20at%2020.59.16.png" alt="see the undefineds in the content"></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Add text with html and newlines.<br> open ckeditor assistant<br> click change tone of voice<br> see all the undefineds in the content. </p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Revert to the old style plugins (javascript) where we did not have these issues or maybe there's other solutions to this?<br> I'm not really sure.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue