forked from editor-js/quote
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename all occurences * 2.2.0 * Update packages * Rename repo * Create .npmignore * Update README.md
- Loading branch information
Showing
7 changed files
with
1,122 additions
and
870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.idea/ | ||
src/ | ||
webpack.config.js | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
# Quote Tool | ||
|
||
Provides Quote Blocks for the [CodeX Editor](https://ifmo.su/editor). | ||
Provides Quote Blocks for the [Editor.js](https://editorjs.io). | ||
|
||
![](https://capella.pics/017dca46-6869-40cb-93a0-994416576e33.jpg) | ||
|
||
|
@@ -13,13 +13,13 @@ Provides Quote Blocks for the [CodeX Editor](https://ifmo.su/editor). | |
Get the package | ||
|
||
```shell | ||
npm i --save-dev codex.editor.quote | ||
npm i --save-dev @editorjs/quote | ||
``` | ||
|
||
Include module at your application | ||
|
||
```javascript | ||
const Quote = require('codex.editor.quote'); | ||
const Quote = require('@editorjs/quote'); | ||
``` | ||
|
||
### Download to your project's source dir | ||
|
@@ -29,22 +29,22 @@ const Quote = require('codex.editor.quote'); | |
|
||
### Load from CDN | ||
|
||
You can load specific version of package from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/codex.editor.quote). | ||
You can load specific version of package from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@editorjs/quote). | ||
|
||
`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. | ||
Then require this script on page with Editor.js. | ||
|
||
```html | ||
<script src="..."></script> | ||
``` | ||
|
||
## 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: { | ||
|
@@ -59,7 +59,7 @@ var editor = CodexEditor({ | |
Or init Quote Tool with additional settings | ||
|
||
```javascript | ||
var editor = CodexEditor({ | ||
var editor = EditorJS({ | ||
... | ||
|
||
tools: { | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,32 @@ | ||
{ | ||
"name": "codex.editor.quote", | ||
"version": "2.1.5", | ||
"name": "@editorjs/quote", | ||
"version": "2.2.0", | ||
"keywords": [ | ||
"codex editor", | ||
"tool", | ||
"quote" | ||
"quote", | ||
"editor.js", | ||
"editorjs" | ||
], | ||
"description": "Quote Tool for CodeX.Editor", | ||
"description": "Quote Tool for Editor.js", | ||
"license": "MIT", | ||
"repository": "https://github.com/codex-editor/quote", | ||
"repository": "https://github.com/editor-js/quote", | ||
"main": "./dist/bundle.js", | ||
"scripts": { | ||
"build": "webpack --config ./webpack.config.js --mode production --watch" | ||
"build": "webpack --mode production", | ||
"build:dev": "webpack --mode development --watch" | ||
}, | ||
"author": { | ||
"name": "CodeX Team", | ||
"email": "[email protected]" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^7.1.5", | ||
"babel-preset-env": "^1.7.0", | ||
"@babel/core": "^7.3.4", | ||
"@babel/preset-env": "^7.3.4", | ||
"babel-loader": "^8.0.5", | ||
"css-loader": "^1.0.0", | ||
"style-loader": "^0.21.0", | ||
"webpack": "^4.16.3", | ||
"webpack-cli": "^3.1.0" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"env" | ||
] | ||
"webpack": "^4.29.5", | ||
"webpack-cli": "^3.2.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.