From ddfd6958efdc577fddcdc585eeb5ca99c6febd7a Mon Sep 17 00:00:00 2001 From: Matthew Borden Date: Fri, 11 Jul 2014 21:31:31 +1000 Subject: [PATCH] Renamed Demo.html to index.html --- index.html | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..5d9e1fa --- /dev/null +++ b/index.html @@ -0,0 +1,86 @@ + + + + + + Squire + + + + + + + + + + + + +
+
+

Squire

+

the <textarea> of the future

+
+
+ +
+
+
+ +
+
+ +
+
+

About

+

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.

+
+
+
+
+

Installation

+
    +
  1. Download the source from neilj/Squire
  2. +
  3. Copy the contents of the build/ directory onto your + server.
  4. + +
  5. 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).
  6. + +
  7. In your application, instead of a <textarea>, use an + <iframe src="path/to/document.html">.
  8. + +
  9. 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.
  10. + +
  11. Use the API below with the editor object to set and get + data and integrate with your application or framework.
  12. +
+
+
+ +
+
+
+

Made with at FastMail

+
+
+ + +
+ + + + \ No newline at end of file