Skip to content

Commit 721d537

Browse files
committed
Remove dialog-polyfill
1 parent cd48b39 commit 721d537

5 files changed

Lines changed: 849 additions & 592 deletions

File tree

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,6 @@ Please see [EditorJSInlineToolConfig](https://github.com/hata6502/editorjs-inlin
5555

5656
Please see [Demo](https://hata6502.github.io/editorjs-inline/).
5757

58-
## <dialog> polyfill
59-
60-
editorjs-inline uses `<dialog>` element and [GoogleChrome/dialog-polyfill](https://github.com/GoogleChrome/dialog-polyfill).
61-
Please load `dialog-polyfill.css` in your document.
62-
63-
```html
64-
<head>
65-
<link
66-
rel="stylesheet"
67-
href="https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.css"
68-
integrity="sha256-hT0ET4tfm+7MyjeBepBgV2N5tOmsAVKcTWhH82jvoaA="
69-
crossorigin="anonymous"
70-
/>
71-
</head>
72-
```
73-
7458
## Build
7559

7660
```sh

docs/index.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8" />
5-
65
<title>editorjs-inline</title>
7-
8-
<link
9-
rel="stylesheet"
10-
href="https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.css"
11-
integrity="sha256-hT0ET4tfm+7MyjeBepBgV2N5tOmsAVKcTWhH82jvoaA="
12-
crossorigin="anonymous"
13-
/>
146
</head>
157

168
<body>

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
},
3535
"devDependencies": {
3636
"@types/uuid": "^8.3.0",
37-
"dialog-polyfill": "^0.5.6",
3837
"license-checker": "^25.0.1",
3938
"prettier": "^2.0.5",
4039
"semantic-release": "^17.4.2",

src/EditorJSInlineElement/createDialog.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { OutputData } from '@editorjs/editorjs';
2-
import dialogPolyfill from 'dialog-polyfill';
32
import { v4 as uuidv4 } from 'uuid';
43
import type { EditorJSInlineWindow } from '../window';
54

@@ -14,8 +13,6 @@ const createDialog = ({
1413
}) => {
1514
const dialog = document.createElement('dialog');
1615

17-
dialogPolyfill.registerDialog(dialog);
18-
1916
dialog.style.maxWidth = '960px';
2017
// Make be not able to click inner
2118
dialog.style.padding = '0';

0 commit comments

Comments
 (0)