Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-12-07 14:09:45

nathancarnes
New member
Registered: 2006-12-07
Posts: 6

Editor onFocus event?

Hello all,

I'm trying to trigger a function when the editor gains focus. Setting the textarea event (e.g. <textarea onFocus="help('content')">) works when the editor is in HTML mode, but not WYSIWYG mode. Can anyone shed any light on this?

By the way, great project! I'm finding it much more agreeable than TinyMCE.

Offline

#2 2006-12-07 15:25:58

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Editor onFocus event?

I'm afraid that is not so easily possible. What is it you want to do, maybe there is another way?

nathancarnes wrote:

By the way, great project! I'm finding it much more agreeable than TinyMCE.

Thanks, spread the word!

Offline

#3 2006-12-07 15:31:39

nathancarnes
New member
Registered: 2006-12-07
Posts: 6

Re: Editor onFocus event?

Basically, I have an AJAX-loaded "Quick Help" blurb appear when the user focuses a specific field, describing what the field does and what to enter there, and providing a link to the full help page. The other fields are simple text inputs. To do this I'm simply using onFocus="help('topic').

Is there some reasonable way to fake it? I'd just like to trigger the help() function when the user is working with the xinha instance.

Thank you very much for your help.

Offline

Board footer

Powered by FluxBB