code style
This commit is contained in:
@@ -9,14 +9,14 @@ export const NodeViewContent: React.FC<NodeViewContentProps> = React.forwardRef(
|
|||||||
const Tag = props.as || 'div'
|
const Tag = props.as || 'div'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tag
|
<Tag
|
||||||
{...props}
|
{...props}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
data-node-view-content=""
|
data-node-view-content=""
|
||||||
style={{
|
style={{
|
||||||
...props.style,
|
...props.style,
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,15 +11,15 @@ export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = React.forwardRef(
|
|||||||
const Tag = props.as || 'div'
|
const Tag = props.as || 'div'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tag
|
<Tag
|
||||||
{...props}
|
{...props}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
data-node-view-wrapper=""
|
data-node-view-wrapper=""
|
||||||
onDragStart={onDragStart}
|
onDragStart={onDragStart}
|
||||||
style={{
|
style={{
|
||||||
...props.style,
|
...props.style,
|
||||||
whiteSpace: 'normal',
|
whiteSpace: 'normal',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user