the <textarea> of the future


Squire is an HTML5 rich text editor, which provides powerful cross-browser normalisation, whilst being supremely lightweight and flexible. It is built for the present and the future, and as such does not support truly ancient browsers. It should work fine back to around Opera 10, Firefox 3.5, Safari 4, Chrome 9 and IE8.

Unlike other HTML5 rich text editors, Squire was written as a component for writing documents (emails, essays, etc.), not doing wysiwyg websites. If you are looking for support for inserting form controls or flash components or the like, you'll need to look elsewhere. However for many purposes, Squire may be just what you need, providing the power without the bloat.


  1. Download the source from neilj/Squire
  2. Copy the contents of the build/ directory onto your server.
  3. Edit the <style> block in document.html to add the default styles you would like the editor to use (or link to an external stylesheet).
  4. In your application, instead of a <textarea>, use an <iframe src="path/to/document.html">.
  5. In your JS, attach an event listener to the load event of the iframe. When this fires you can grab a reference to the editor object through iframe.contentWindow.editor.
  6. Use the API below with the editor object to set and get data and integrate with your application or framework.

Made with at FastMail