#About
Taylor is a lightweight HTML editor ( < 1000 lines) written in Coffeescript and compiled into Javascript for use on the web. It's open-source, MIT-licensed (do whatever the hell you want with it), but please consider contributing to the source code to help better it. The goal is to eventually eliminate all dependencies to make Taylor a standalone text-editor, use primarily targeted towards developers' blogs, hyper-text comment systems, and such.
The source code can be found at http://github.com/ishmaelthedestroyer/taylor
The demo can be found at http://taylor-editor.herokuapp.com
The beef of the source code (Coffeescript) can be found at https://github.com/ishmaelthedestroyer/taylor/blob/master/js/taylor.coffee
The compiled source code (Javascript) can be found at https://github.com/ishmaelthedestroyer/taylor/blob/master/dist/js/taylor.js
#TODO
-
Documentation in the works.
-
Methods for importing + exporting text as well as utility functions for basic statistics.
-
Sticky utility bar that sticks to the top after scrolling past.
#Dependencies
Taylor requires the Bootstrap 3.0 and Font Awesome CSS + fonts, as well as the included CSS and Javascript files. Taylor does NOT depend on jQuery. Add the dependencies in the head of your document like so:
<link media='screen' rel='stylesheet' href='/path/to/bootstrap.css' /> <link media='screen' rel='stylesheet' href='/path/to/font-awesome.css' /> <link media='screen' rel='stylesheet' href='/path/to/taylor.css' /> <script src='/path/to/taylor.js'></script>
#Markup
<div id='target'></div>
#Javascript (Initialize)
<script> var editor = new Taylor('target', { height: '1000px' }); </script>
#Properties
Attribute | Description | Default |
---|---|---|
Width | Width of the editor (takes percentage or pixels). | 100% |
Height | Height of the editor (percentage or pixels). | 500px |
Buttons | An array of buttons to include in the utility bar. | Documentation in the works. |
#Notes
Feedback, suggestions? Tweet me @IshmaelsAlive.