Add a "fckActiveId" variable for the active editor

quicksketch - April 27, 2009 - 06:03
Project:FCKeditor - WYSIWYG HTML editor
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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);.

AttachmentSize
fckeditor_active_editor_variable.patch1.31 KB

#1

wwalc - May 14, 2009 - 09:53
Status:needs review» fixed

Fixed in CVS. Thanks!

#2

quicksketch - May 14, 2009 - 17:26

Great, thanks!

#3

System Message - May 28, 2009 - 17:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.