Track editors instantiated after loading Insert

Created on 24 April 2024, 7 months ago
Updated 12 May 2024, 6 months ago

Currently, the Insert module code does not detect any CKEditor instances loaded after the Insert module has loaded. For example, this will result in content not being inserted into an editor when the text format of an input element is changed as that instantiates a new editor.

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @snater
    • Snater committed cccdbefb on 3.x
      Issue #3443148: Track editors instantiated after loading Insert
      
  • Status changed to Needs review 7 months ago
  • Status changed to Fixed 7 months ago
  • When changing the text format, the re-instantiated editor is recognised now. However, the default insert target cannot be reliably updated until #3319358 Trigger event when Text Editor is attached Needs work is resolved in Drupal core. Therefore, after switching the text format, e.g. on the node body editor, it cannot be assumed that the default insertion target is updated with the new editor instance. Therefore, the user needs to click into the editor to have content inserted into it.

    Leaving it like that for the moment, since changing the text format is likely more of a rare case. As soon as a resolution is implemented in Drupal core, the default target detection can be improved.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024