mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
increase iframe default dimension
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user