AI Automators with CKEditor does always require selection
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3533339. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !709 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The parent base class of CKEditor plugins have changed, so a #markup always exists that shows that you have to do selection, even when that is not picked for an Automator Type.</p> <p>Also the field inputs does not work, because of the iteration.</p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <p>Create an AI Automator Chain<br> Connect it in AI CKEditor<br> Disable that selection is needed<br> Try to create something without selecting it, it will not work and give an error.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Make sure to unset the #markup that comes from the parent<br> Make sure to use the key and not the value on input for it to work.<br> Set needsSelectedText to false.</p>
issue