-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Fix for Editor.js v2.19.1 (#24)
BREAKING CHANGE: For avoiding default exports, the module export method is also changed. * Simplify demo * Avoid default exports * Fix for v2.19.1 * Fix README
- Loading branch information
Showing
10 changed files
with
94 additions
and
123 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,26 @@ | ||
name: CodeQL | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
schedule: | ||
- cron: '0 3 * * 1' | ||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ['javascript'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
- run: git checkout HEAD^2 | ||
if: ${{ github.event_name == 'pull_request' }} | ||
- uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
- uses: github/codeql-action/autobuild@v1 | ||
- uses: github/codeql-action/analyze@v1 |
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,3 +1,4 @@ | ||
<!-- markdownlint-disable first-line-h1 --> | ||
<h1 align="center">Welcome to editorjs-style 👋</h1> | ||
<p> | ||
<a href="https://www.npmjs.com/package/editorjs-style" target="_blank"> | ||
|
@@ -6,12 +7,6 @@ | |
<a href="#" target="_blank"> | ||
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" /> | ||
</a> | ||
<a href="https://lgtm.com/projects/g/hata6502/editorjs-style/alerts/"> | ||
<img alt="Total alerts" src="https://img.shields.io/lgtm/alerts/g/hata6502/editorjs-style.svg?logo=lgtm&logoWidth=18"/> | ||
</a> | ||
<a href="https://lgtm.com/projects/g/hata6502/editorjs-style/context:javascript"> | ||
<img alt="Language grade: JavaScript" src="https://img.shields.io/lgtm/grade/javascript/g/hata6502/editorjs-style.svg?logo=lgtm&logoWidth=18"/> | ||
</a> | ||
<a href="https://twitter.com/hata6502" target="_blank"> | ||
<img alt="Twitter: hata6502" src="https://img.shields.io/twitter/follow/hata6502.svg?style=social" /> | ||
</a> | ||
|
@@ -24,9 +19,6 @@ | |
Editor.js may need many inline tools to styling inline elements. | ||
editorjs-style provides feature attaching any id, class and style to inline elements. | ||
|
||
By using with [editorjs-inspector](https://github.com/hata6502/editorjs-inspector), | ||
Editor.js can be used like a HTML editor. | ||
|
||
### ✨ [Demo](https://hata6502.github.io/editorjs-style/) | ||
|
||
 | ||
|
@@ -71,11 +63,7 @@ yarn test | |
|
||
## Author | ||
|
||
<img alt="hata6502" src="https://avatars.githubusercontent.com/hata6502" width="48" /> **hata6502** | ||
|
||
- Website: https://b-hood.site/ | ||
- Twitter: [@hata6502](https://twitter.com/hata6502) | ||
- Github: [@hata6502](https://github.com/hata6502) | ||
<img alt="hata6502" src="https://avatars.githubusercontent.com/hata6502" width="48" /> **Tomoyuki Hata <[email protected]>** | ||
|
||
## 🤝 Contributing | ||
|
||
|
@@ -89,7 +77,7 @@ Give a ⭐️ if this project helped you! | |
|
||
## 📝 License | ||
|
||
Copyright © 2020 [hata6502](https://github.com/hata6502). | ||
Copyright © 2020 [Tomoyuki Hata](https://github.com/hata6502). | ||
|
||
This project is [MIT](https://github.com/hata6502/editorjs-style/blob/master/LICENSE) licensed. | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
], | ||
"repository": "https://github.com/hata6502/editorjs-style", | ||
"license": "MIT", | ||
"author": "hata6502", | ||
"author": "Tomoyuki Hata <[email protected]>", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"fix": "prettier --write .", | ||
|
@@ -23,7 +23,7 @@ | |
"webpack": "webpack" | ||
}, | ||
"devDependencies": { | ||
"@editorjs/editorjs": "^2.18.0", | ||
"@editorjs/editorjs": "^2.19.1", | ||
"license-checker": "^25.0.1", | ||
"material-design-icons": "^3.0.1", | ||
"prettier": "^2.0.5", | ||
|
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,10 +1,3 @@ | ||
class EditorJSStyleElement extends HTMLElement { | ||
constructor() { | ||
super(); | ||
class EditorJSStyleElement extends HTMLElement {} | ||
|
||
// To prevent Editor.js keydown event | ||
this.addEventListener('keydown', (event) => event.stopPropagation()); | ||
} | ||
} | ||
|
||
export default EditorJSStyleElement; | ||
export { EditorJSStyleElement }; |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ class EditorJSStyleError extends Error { | |
} | ||
} | ||
|
||
export default EditorJSStyleError; | ||
export { EditorJSStyleError }; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
import EditorJSStyle from './EditorJSStyle'; | ||
|
||
export default EditorJSStyle; | ||
export { StyleInlineTool } from './StyleInlineTool'; |
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.