Coder Social home page Coder Social logo

morozd / sir-trevor-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from madebymany/sir-trevor-js

0.0 1.0 0.0 6.68 MB

Rich content editing entirely re-imagined for the web

Home Page: http://madebymany.github.io/sir-trevor-js/

License: MIT License

sir-trevor-js's Introduction

Sir Trevor

Build Status

Sir Trevor in action

Existing WYSIWYG content editors were designed for immutable display media. In contrast, Sir Trevor is rich content editing entirely re-imagined for the web: an intuitive editor for web content which does not presuppose anything about how it will be rendered.

It believes in three guiding principles:

  • Display-neutrality: content must be stored in a clean, structured and standards-based format
  • Technology agnosticism: act as an abstraction layer on top of any technology which can render HTML
  • Extensibility: the interface must be easily extended to include input mechanics for any web-based artefact

Conceived by Andrew Sprinz. Maintained by Chris Bell & Andrew Walker.

Quick start

  1. Download the latest release
  2. Clone the repo: git clone git://github.com/madebymany/sir-trevor-js.git
  3. Install with Bower bower install sir-trevor-js

For Rails based installations, please see the Sir Trevor Rails gem.

Browser support

Sir Trevor is only tested on the following modern browsers:

  1. IE10+
  2. Chrome 25+
  3. Safari 5+
  4. Firefox 16+

Customising

We use Sass for our styles, if you'd like to change the default styling please fork the repository and make changes to the Sass before recompiling. Alternatively, you can override the base styles with your own CSS.

Block Types can also easily be added to the SirTrevor.Blocks object. You can also override the defaulty block types (Text, Image, Tweet, Video, Quote, Heading & List) at any time. Please see the Wiki article about adding your own block types for more information.

Dependencies

Sir Trevor requires Underscore (or LoDash), jQuery (or Zepto) and Eventable.

Building the website

Please see the README in the website folder for more information.

Compiling

We use the awesome Grunt for our build process. Before getting started please be sure to install the necessary dependencies via npm:

$ npm install

When completed you'll be able to run the various grunt commands provided:

$ grunt

Concatenates scripts, compiles the Sass, runs the Jasmine tests and minifies the project.

$ grunt watch

Convienience method while developing to compile the Sass files and concatenate the Javascript on save of a file in the /src directory.

Please ensure any pull requests have relevant Jasmine tests (where applicable).

Licence

Sir Trevor is released under the MIT license: opensource.org/licenses/MIT

sir-trevor-js's People

Contributors

cjbell avatar arbarlow avatar andflett avatar higgis avatar andrewmcdonough avatar dchest avatar mattfield avatar makeusabrew avatar

Watchers

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