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
This discussion has been locked so you can no longer reply to it.