Text editor with macro function

Re: Text editor with macro function

av Janne Mikkonen -
Antall svar: 0
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 -