Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This request is identical to the previous request for FCKeditor: #445878: Add a "fckActiveId" variable for the active editor.
The new CKeditor module has an API regression in that there is no way to find the currently active editor. For modules like Insert, this means that they have no way to find which editor to insert HTML into if there are multiple editors on the page.
Comments
Comment #1
quicksketchThe relevant Insert module feature request for this functionality: #811436: Insert Works For Default Fields But Not CCK Fields (CKeditor).
Comment #2
sethcohn CreditAttribution: sethcohn commented+1
If this sort of thing isn't implemented eventually, folks will be forced to use wysiwyg_api merely to use CKeditor with other modules.
Comment #3
jzornig CreditAttribution: jzornig commentedI need this.
Comment #4
dczepierga CreditAttribution: dczepierga commentedI add variable: Drupal.ckeditorActiveId
There u can find name of currently active editor.
Changes commited to CVS.
Please check the latest dev release and let me know if you notice any poblems with it. Remember to clear Drupal cache and browsers cache before testing.
Comment #5
quicksketchThanks, I've integrated this new option into Insert. Works great.