Announcement

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

#1 2006-03-15 12:10:56

Langi
New member
Registered: 2006-03-15
Posts: 1

problem with understanding execCommand

Hi,
I'm trying to figure out how Xinha works, but there is a point which I don't understand:

when someone clicks for example on the "bold" button, then the HTMLArea.prototype.execCommand-function is called with the parameter cmdID="bold". The code walks through all the "case"-statements, and for the default it calls the function this._doc.execCommand(cmdID, UI, param).

My JavaScript OO knowledge is not very good, so pleasy help me understand: The generated IFrame's execCommand-function is calls? Where is it defined? Is it the same as the prototype.execCommand-function? And if so, how comes there is no infinite loop as the function is calling itself with no changed parameters?

Can you please help me and tell me where I find the piece of code where the bold and italic formatting is done?

THX a lot,
Langi

Offline

#2 2006-03-15 14:34:51

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

Re: problem with understanding execCommand

Offline

Board footer

Powered by FluxBB