The function (e) {e.execCommand("copywiki");} actually calls the function HTMLArea.prototype.execCommand that defines what function is called to finish the task.
So you need to add that copywiki into HTMLArea.prototype.execCommand switch block somewhere:
case "copywiki": this._copyWiki(); break;
Then you'll need to create a function:
HTMLArea.prototype._copyWiki = function () {
// your code in here.
}
- Janne -
Text editors
Text editor with macro function
Dyskusyjŏ ôstała zaszperowanŏ, tōż niy możesz już ôdpedzieć.