mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 22:36:14 +08:00
Prevent overriding 'whiteSpace' styling for NodeView React components (#2884)
Fixes ueberdosis/tiptap#2883
This commit is contained in:
parent
d9430e5163
commit
8a5b3cf67a
@ -17,8 +17,8 @@ export const NodeViewContent: React.FC<NodeViewContentProps> = props => {
|
||||
ref={nodeViewContentRef}
|
||||
data-node-view-content=""
|
||||
style={{
|
||||
...props.style,
|
||||
whiteSpace: 'pre-wrap',
|
||||
...props.style,
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
@ -18,8 +18,8 @@ export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = React.forwardRef(
|
||||
data-node-view-wrapper=""
|
||||
onDragStart={onDragStart}
|
||||
style={{
|
||||
...props.style,
|
||||
whiteSpace: 'normal',
|
||||
...props.style,
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user