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.
I'm working on a module that provides an easy way to insert uploads into the body or other textareas when editing a node. Handling textareas and tinyMCE are pretty easy, since I can keep track of textfields using onFocus and tinyMCE provides a handy tinyMCE.activeEditor variable. However FCKeditor doesn't provide such a variable, so there's no way to know which editor the user is currently editing.
This patch adds an OnFocus handler to the FCKeditor instance so that the active editor can be found with ease, using FCKeditorAPI.Instances[fckActiveId].InsertHtml(content);
.
Comment | File | Size | Author |
---|---|---|---|
fckeditor_active_editor_variable.patch | 1.31 KB | quicksketch |
Comments
Comment #1
wwalc CreditAttribution: wwalc commentedFixed in CVS. Thanks!
Comment #2
quicksketchGreat, thanks!