Announcement

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

#1 2006-08-09 19:47:56

karlkrist
New member
Registered: 2006-08-03
Posts: 1

focus on ONE xinha text area

I understand that Xinha will not activate an editor when a page loads- and I understand there are reasons behind that.

But, what I am hoping to activate the editor manually, by clicking on something outside of the editor.

Basically, I want people to be able to drag and drop images into the editor.  Everything works fine, but they need to click inside the editor first. 

If I could set up some other function to activate the editor, I could trigger that when needed- for instance, on a mouseOver when they want to drag the picture in.


Is there a way to manually activate the editor?

Thank you,

Karl Krist

Offline

#2 2006-08-10 02:07:50

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: focus on ONE xinha text area

you just need to call the activateEditor() method on the editor object you want to activate

  xinha_editors.myEditor.activateEditor();

(after the editor has been initialized etc of course)


James Sleeman

Offline

Board footer

Powered by FluxBB