Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

## [1.0.1 ] - 2022-08-23

features:
- Add IconStrikethrough from @codexteam/icons, the icon added is 1.5 times bigger than the other icons
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ Add a new Tool to the `tools` property of the Editor.js initial config.
```javascript
var editor = EditorJS({
...

tools: {
...
strikethrough: {
class: Strikethrough,
shortcut: 'CMD+SHIFT+X',
},
},

...
});
```
Expand All @@ -60,4 +60,4 @@ Marked text will be wrapped with a `del` tag with an `cdx-strikethrough` class.
"text" : "This is <del class='cdx-strikethrough'>test</del> text."
}
}
```
```
2 changes: 1 addition & 1 deletion dist/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "editorjs-strikethrough",
"version": "1.0.0",
"name": "@content-harmony/editorjs-strikethrough",
"version": "1.0.1",
"description": "Strikethrough Tool for Editor.js",
"keywords": [
"codex editor",
Expand All @@ -14,10 +14,7 @@
"build": "webpack --mode production",
"build:dev": "webpack --mode development --watch"
},
"author": {
"name": "Andrew Ye",
"email": "yrfandrew@gmail.com"
},
"author": "Andrew Ye <yrfandrew@gmail.com>",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.9.6",
Expand All @@ -31,6 +28,13 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/yrfandrew/editorjs-strikethrough.git"
}
"url": "https://github.com/yrfandrew/editorjs-strikethrough.git"
},
"dependencies": {
"@codexteam/icons": "^0.1.0"
},
"bugs": {
"url": "https://github.com/yrfandrew/editorjs-strikethrough/issues"
},
"homepage": "https://github.com/yrfandrew/editorjs-strikethrough#readme"
}
1 change: 0 additions & 1 deletion src/assets/strikethrough.svg

This file was deleted.

7 changes: 4 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Build styles
*/
require('./index.css').toString();
import './index.css';
import { IconStrikethrough } from '@codexteam/icons'

/**
* Strikethrough Tool for the Editor.js
Expand Down Expand Up @@ -165,7 +166,7 @@ class Strikethrough {
* @return {string}
*/
get toolboxIcon() {
return require('./assets/strikethrough.svg').default;
return IconStrikethrough;
}

/**
Expand All @@ -181,4 +182,4 @@ class Strikethrough {
}
}

module.exports = Strikethrough;
export default Strikethrough;
Loading