code style

This commit is contained in:
Philipp Kühn 2021-06-14 16:06:49 +02:00
parent 8ef5a2bcd8
commit a3a847f711
2 changed files with 19 additions and 19 deletions

View File

@ -9,14 +9,14 @@ export const NodeViewContent: React.FC<NodeViewContentProps> = React.forwardRef(
const Tag = props.as || 'div'
return (
<Tag
{...props}
ref={ref}
data-node-view-content=""
style={{
...props.style,
whiteSpace: 'pre-wrap',
}}
/>
<Tag
{...props}
ref={ref}
data-node-view-content=""
style={{
...props.style,
whiteSpace: 'pre-wrap',
}}
/>
)
})

View File

@ -11,15 +11,15 @@ export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = React.forwardRef(
const Tag = props.as || 'div'
return (
<Tag
{...props}
ref={ref}
data-node-view-wrapper=""
onDragStart={onDragStart}
style={{
...props.style,
whiteSpace: 'normal',
}}
/>
<Tag
{...props}
ref={ref}
data-node-view-wrapper=""
onDragStart={onDragStart}
style={{
...props.style,
whiteSpace: 'normal',
}}
/>
)
})