Skip to content

Commit

Permalink
Feature/renaming (#13)
Browse files Browse the repository at this point in the history
* Rename all occurences

* 2.1.0

* Update packages

* Rename repo

* Create .npmignore

* Update README.md
  • Loading branch information
gohabereg authored Mar 2, 2019
1 parent ff065f6 commit d5edae3
Show file tree
Hide file tree
Showing 11 changed files with 5,159 additions and 7,231 deletions.
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea/
dev/
src/
.babelrc
.eslintrc
webpack.config.js
yarn.lock
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![](https://badgen.net/badge/CodeX%20Editor/v2.0/blue)
![](https://badgen.net/badge/Editor.js/v2.0/blue)

# Image Tool

Image Block for the [CodeX Editor](https://ifmo.su/editor).
Image Block for the [Editor.js](https://editorjs.io).

![](https://capella.pics/63a03d04-3816-45b2-87b2-d85e556f0066.jpg)

Expand All @@ -24,13 +24,13 @@ Image Block for the [CodeX Editor](https://ifmo.su/editor).
Get the package

```shell
npm i --save-dev codex.editor.image
npm i --save-dev @editorjs/image
```

Include module at your application

```javascript
const ImageTool = require('codex.editor.image');
const ImageTool = require('@editorjs/image');
```

### Download to your project's source dir
Expand All @@ -40,18 +40,18 @@ const ImageTool = require('codex.editor.image');

### Load from CDN

You can load specific version of package from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/codex.editor.image).
You can load specific version of package from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@editorjs/image).

`https://cdn.jsdelivr.net/npm/codex.editor.[email protected]`
`https://cdn.jsdelivr.net/npm/@editorjs/[email protected]`

Then require this script on page with CodeX Editor through the `<script src=""></script>` tag.
Then require this script on page with Editor.js through the `<script src=""></script>` tag.

## Usage

Add a new Tool to the `tools` property of the CodeX Editor initial config.
Add a new Tool to the `tools` property of the Editor.js initial config.

```javascript
var editor = CodexEditor({
var editor = EditorJS({
...

tools: {
Expand Down
62 changes: 31 additions & 31 deletions dist/bundle.js

Large diffs are not rendered by default.

Loading

0 comments on commit d5edae3

Please sign in to comment.