mirror of
https://github.com/docmost/docmost.git
synced 2026-05-06 22:03:06 +08:00
increase iframe default dimension
This commit is contained in:
@@ -86,8 +86,8 @@ export default function EmbedView(props: NodeViewProps) {
|
||||
{embedUrl ? (
|
||||
<div className={classes.embedContainer}>
|
||||
<ResizableWrapper
|
||||
initialWidth={nodeWidth || 640}
|
||||
initialHeight={nodeHeight || 480}
|
||||
initialWidth={nodeWidth || 800}
|
||||
initialHeight={nodeHeight || 600}
|
||||
minWidth={200}
|
||||
maxWidth={1200}
|
||||
minHeight={200}
|
||||
|
||||
@@ -64,14 +64,14 @@ export const Embed = Node.create<EmbedOptions>({
|
||||
}),
|
||||
},
|
||||
width: {
|
||||
default: 640,
|
||||
default: 800,
|
||||
parseHTML: (element) => element.getAttribute("data-width"),
|
||||
renderHTML: (attributes: EmbedAttributes) => ({
|
||||
"data-width": attributes.width,
|
||||
}),
|
||||
},
|
||||
height: {
|
||||
default: 480,
|
||||
default: 600,
|
||||
parseHTML: (element) => element.getAttribute("data-height"),
|
||||
renderHTML: (attributes: EmbedAttributes) => ({
|
||||
"data-height": attributes.height,
|
||||
|
||||
Reference in New Issue
Block a user