JS Quicktags | JavaScriptSource

JS Quicktags

Alex King Mar 28, 2007


This script will insert HTML tags at the cursor position in IE and Gecko-based browsers (Mozilla, Camino, Firefox, Netscape). For browsers that do not support inserting at the cursor position (Safari, OmniWeb) it appends the tags to the end of the content.


The variable edCanvas must be defined as the <textarea> element you want to be editing in. See the accompanying example.

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: js_quicktags.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response