Git Product home page Git Product logo

taylor's Introduction

#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.

taylor's People

Contributors

ishmaelthedestroyer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.