File tree Expand file tree Collapse file tree
src/EditorJSInlineElement Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,22 +55,6 @@ Please see [EditorJSInlineToolConfig](https://github.com/hata6502/editorjs-inlin
5555
5656Please 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 11import type { OutputData } from '@editorjs/editorjs' ;
2- import dialogPolyfill from 'dialog-polyfill' ;
32import { v4 as uuidv4 } from 'uuid' ;
43import 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' ;
You can’t perform that action at this time.
0 commit comments