From: julmis Date: Mon, 3 Nov 2003 23:53:49 +0000 (+0000) Subject: Hide cut, copy and paste buttons from gecko browsers X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=61d5f1854d1a126718b295bcffd4398b23773a23;p=moodle.git Hide cut, copy and paste buttons from gecko browsers --- diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index d5870e22ef..bc0c2c977b 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -56,6 +56,10 @@ function HTMLArea(textarea, config) { this._mdoc = document; // cache the document, we need it in plugins this.doctype = ''; } + // Hide cut, copy and paste buttons from gecko browsers + if (HTMLArea.is_gecko) { + this.config.hideSomeButtons(" cut copy paste "); + } }; // cache some regexps