increase iframe default dimension

This commit is contained in:
Philipinho
2026-03-28 17:22:44 +00:00
parent 4ff67bb962
commit 1adbf97701
2 changed files with 4 additions and 4 deletions
@@ -86,8 +86,8 @@ export default function EmbedView(props: NodeViewProps) {
{embedUrl ? ( {embedUrl ? (
<div className={classes.embedContainer}> <div className={classes.embedContainer}>
<ResizableWrapper <ResizableWrapper
initialWidth={nodeWidth || 640} initialWidth={nodeWidth || 800}
initialHeight={nodeHeight || 480} initialHeight={nodeHeight || 600}
minWidth={200} minWidth={200}
maxWidth={1200} maxWidth={1200}
minHeight={200} minHeight={200}
+2 -2
View File
@@ -64,14 +64,14 @@ export const Embed = Node.create<EmbedOptions>({
}), }),
}, },
width: { width: {
default: 640, default: 800,
parseHTML: (element) => element.getAttribute("data-width"), parseHTML: (element) => element.getAttribute("data-width"),
renderHTML: (attributes: EmbedAttributes) => ({ renderHTML: (attributes: EmbedAttributes) => ({
"data-width": attributes.width, "data-width": attributes.width,
}), }),
}, },
height: { height: {
default: 480, default: 600,
parseHTML: (element) => element.getAttribute("data-height"), parseHTML: (element) => element.getAttribute("data-height"),
renderHTML: (attributes: EmbedAttributes) => ({ renderHTML: (attributes: EmbedAttributes) => ({
"data-height": attributes.height, "data-height": attributes.height,