Modify with a Prompt plugin is unable save the generated output to editor

Created on 9 May 2025, 4 days ago

Problem/Motivation

The "Modify with a prompt" plugin in the ai_ckeditor module is designed to apply AI-generated modifications to selected text in the CKEditor. However, after generating a result and clicking "Save changes to editor", the originally selected text disappears instead of being replaced with the modified content. This disrupts user expectations and results in data loss within the editor.

This issue impacts the usability of the plugin and defeats its core purpose—modifying selected text via custom instructions.

Steps to reproduce

  1. Open a CKEditor field in a content
  2. Select any portion of text.
  3. Click the "Modify with a prompt" plugin under AI Assistant.
  4. In the modal:Add custom instructions in the "Your instructions" field.
  5. Click on generate
  6. Once the result is displayed in the "Result" field, click "Save changes to editor".
  7. Observe that the original selected text disappears, and no replacement is inserted.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

AI CKEditor

Created by

🇮🇳India annmarysruthy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024