Comparing version 0.3.4 to 0.3.5
{ | ||
"name": "kattappa", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "A block based rich text editor with support of Images, embeds( Youtube, twitter, etc)", | ||
@@ -5,0 +5,0 @@ "main": "./npm/index.js", |
@@ -11,21 +11,22 @@ ## Kattappa | ||
### Installation | ||
* Use `bower install kattappa`. | ||
* For `browserify` users: | ||
* `npm install kattappa`. | ||
* `var Kattappa = require('kattappa');` | ||
* To directly use in browser: | ||
* `bower install kattappa`. | ||
* CSS: | ||
* `<link rel="stylesheet" type="text/css" href="bower_components/quill/dist/quill.base.css">` | ||
* `<link rel="stylesheet" type="text/css" href="bower_components/quill/dist/quill.snow.css">` | ||
* `<link rel="stylesheet" type="text/css" href="kattappa.css">`. (Used for basic styling of the blocks. You can extend these to be what you want.) | ||
* Javascript: | ||
* `<script type="text/javascript" src="bower_components/react/react-with-addons.min.js"></script>` | ||
* `<script type="text/javascript" src="bower_components/quill/dist/quill.min.js"></script>` | ||
* `<script src="bower_components/fetch/fetch.js"></script>` | ||
* `<script type="text/javascript" src="kattappa.js"></script>` | ||
* Or Download the latest release [here](https://github.com/brijeshb42/kattappa/releases/latest). | ||
### Usage | ||
It is available in the `window` as `Kattappa`. | ||
#### Load dependencies in your html: | ||
* CSS: | ||
* `<link rel="stylesheet" type="text/css" href="bower_components/quill/dist/quill.base.css">` | ||
* (A bundled quill css comes with `Kattappa`. If you don't use bower, you can directly use: | ||
* `<link rel="stylesheet" type="text/css" href="kattappa.vendor.css">`) | ||
* `<link rel="stylesheet" type="text/css" href="kattappa.css">`. (Used for basic styling of the blocks. You can extend these to be what you want.) | ||
* Javascript: | ||
* `<script type="text/javascript" src="bower_components/react/react-with-addons.min.js"></script>` | ||
* `<script type="text/javascript" src="bower_components/quill/dist/quill.min.js"></script>` | ||
* `<script src="bower_components/fetch/fetch.js"></script>` | ||
* (Or you can just include `<script src="kattappa.vendor.js"></script>` instead of the above 3). | ||
* `<script type="text/javascript" src="kattappa.js"></script>` | ||
It is available in the `window` global as `Kattappa`. | ||
* Html: | ||
@@ -32,0 +33,0 @@ * `<div id="editor-ui"></div>` |
Sorry, the diff of this file is not supported yet
99293
29
1946
143