Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
feat: add iframe extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Nov 25, 2022
1 parent 0528be0 commit da468b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
ExtensionSuperscript,
ExtensionPlaceholder,
ExtensionCommands,
ExtensionIframe,
CommandsSuggestion,
CommandHeader1,
CommandHeader2,
Expand All @@ -45,6 +46,7 @@ import {
CommandHeader5,
CommandHeader6,
CommandCodeBlock,
CommandIframe,
ExtensionCodeBlock,
lowlight,
RichTextEditor,
Expand Down Expand Up @@ -128,6 +130,7 @@ const editor = useEditor({
CommandHeader5,
CommandHeader6,
CommandCodeBlock,
CommandIframe,
].filter((item) =>
[...item.keywords, item.title].some((keyword) =>
keyword.includes(query)
Expand All @@ -139,6 +142,7 @@ const editor = useEditor({
ExtensionCodeBlock.configure({
lowlight,
}),
ExtensionIframe,
],
onUpdate: () => {
content.value = editor.value?.getHTML() + "";
Expand Down

0 comments on commit da468b3

Please sign in to comment.