Giter Site home page Giter Site logo

soverdrive / 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 9.5 MB

Rich content editing entirely re-imagined for the web

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

License: MIT License

JavaScript 79.19% HTML 5.55% Shell 1.19% CSS 12.18% Ruby 1.90%

sir-trevor-js's Introduction

Sir Trevor

Build Status

Sir Trevor in action

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

Quick start

Full documentation can be found here.

Plain JS

  • Download the latest release
  • ...or clone the repo: git clone git://github.com/madebymany/sir-trevor-js.git
  • ...or install with Bower bower install sir-trevor-js

Implementations

  1. Sir Trevor Rails
  2. Umbraco 7, Umbraco 6
  3. CakePHP
  4. Wordpress
  5. Laravel
  6. Django
  7. Yii Framework
  8. Symfony2

Custom blocks

We are keeping a list of custom block repos here. See the documentation to find out more about adding your own block types.

Browser support

Sir Trevor is only tested on the following modern browsers:

  • IE10+
  • Chrome 25+
  • Safari 5+
  • Firefox 16+

ECMAScript 6 shims are bundled in by default; if the platform you wish to run on doesn't support ECMAScript 5 APIs you'll need to shim those yourself.

Dependencies

It's up to you:

  • Bring your own jQuery or Zepto (and have it put itself on window.$) and use sir-trevor.js / sir-trevor.min.js
  • Or if you're using Browserify yourself, npm install sir-trevor and require('sir-trevor') it as you would expect.

Contributing

See the roadmap and read a little about the philosophy guiding development.

Customising the way it looks

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.

Customising blocks

Block Types can also easily be added to the SirTrevor.Blocks object. You can also override the default block types (Text, Image, Tweet, Video, Quote, Heading & List) at any time. See the documentation to find out more about adding your own block types.

Compiling

Before getting started please be sure to install the necessary dependencies via npm:

$ npm install

When completed, we have a couple of preset scripts:

$ npm run dev

This compiles for development, and watches source files to recompile when you change something.

$ npm test

Runs the linter and test suite, just like the CI server does.

$ npm run dist

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

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

License

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

sir-trevor-js's People

Contributors

cjbell avatar andflett avatar arbarlow avatar raffij avatar jeffling avatar jbaiter avatar higgis avatar caouecs avatar callumlocke avatar motin avatar jackjennings avatar borales avatar marcstoecker avatar jackbot avatar dwb avatar lenciel avatar zertosh avatar lacivert avatar woutersioen avatar simonsmith avatar romaricdrigon avatar philippbosch avatar olvado avatar makeusabrew avatar zenkalia avatar maximdubrovin avatar mattfield avatar martinbean avatar monological avatar dchest avatar

Watchers

James Cloos 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.