You are not logged in.
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
The function is part of the browser's editing engine
http://www.mozilla.org/editor/midas-spec.html
http://msdn.microsoft.com/workshop/auth … ommand.asp
Offline