Announcement

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

#1 2006-04-08 00:39:09

alibaba_and_40girls
Xinha Community Member
Registered: 2006-03-23
Posts: 11

handles key bindings, help !

When I click "Toggle HTML Source" button to switch to HTML mode, I want to ask you that which function in HTMLArea.js handle key bindings? For example when I press Enter key, which function will  hanlde it?
Many thanks,

Sorry about my bad English. big_smile

Offline

#2 2006-04-08 06:08:28

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

Re: handles key bindings, help !

In wysiwyg mode it's line 4370: HTMLArea.prototype._editorEvent, but this is not text mode. That's just the plain old textarea, i.e. Xinha is disabled

Offline

#3 2006-04-08 11:55:56

junkwarrior
Xinha Community Member
Registered: 2006-03-12
Posts: 14

Re: handles key bindings, help !

Hello Ray, You mean, no Xinha fancy stuff can ever be available if you're in Text mode?

I'm a newbie here, but I do wonder if allowing people to use Text-mode HTML would have been a bad idea.
After all, many people know lots of HTML, and  would love to use Xinha (etc.) as just plain Non-wysiwyg HTML editor for the textarea.

Also,  alibaba_and_40girls (you must be a VERY busy guy :-) )  you might be looking for  function HTMLarea.prototype.outwardHTML()  , that's what actually handles the text when switching between Wysiwyg and source view. (for the ack, ray pointed it out to me,and man, am I greatful for that! )

Offline

Board footer

Powered by FluxBB