Skip to content

Commit 245e124

Browse files
committed
fix: Remove dialog-polyfill
1 parent 721d537 commit 245e124

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/index.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
{
2626
type: 'paragraph',
2727
data: {
28-
text:
29-
'test&nbsp;<editorjs-style style="background: pink;\ndisplay: inline-block;"><editorjs-inline data-editorjs="{&quot;blocks&quot;:[{&quot;type&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;text&quot;:&quot;editorjs-inline&quot;}}]}">editorjs-inline</editorjs-inline></editorjs-style>&nbsp;test',
28+
text: 'test&nbsp;<editorjs-style style="background: pink;\ndisplay: inline-block;"><editorjs-inline data-editorjs="{&quot;blocks&quot;:[{&quot;type&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;text&quot;:&quot;editorjs-inline&quot;}}]}">editorjs-inline</editorjs-inline></editorjs-style>&nbsp;test',
3029
},
3130
},
3231
],
@@ -63,9 +62,8 @@
6362
document.querySelector('#button').addEventListener('click', async () => {
6463
const outputData = await editorJS.save();
6564

66-
document.querySelector('#output-data').textContent = JSON.stringify(
67-
outputData
68-
);
65+
document.querySelector('#output-data').textContent =
66+
JSON.stringify(outputData);
6967
});
7068
</script>
7169
</body>

src/EditorJSInlineElement/EditorJSInlineElement.ts

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class EditorJSInlineElement extends HTMLElement {
7373
});
7474

7575
document.body.append(dialog);
76+
// @ts-expect-error
7677
dialog.showModal();
7778
};
7879
}

src/EditorJSInlineElement/createDialog.ts

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const createDialog = ({
3838
return;
3939
}
4040

41+
// @ts-expect-error
4142
dialog.close();
4243
};
4344

0 commit comments

Comments
 (0)