1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 20:51:20 +02:00

remove draggable attribute from void nodes (#1731)

This commit is contained in:
Tobias Andersen
2018-05-02 01:38:31 +01:00
committed by Ian Storm Taylor
parent 1fff68d625
commit 794e705c72
3 changed files with 3 additions and 6 deletions

View File

@@ -72,10 +72,7 @@ class Void extends React.Component {
)
const content = (
<Tag
contentEditable={readOnly ? null : false}
draggable={readOnly ? null : true}
>
<Tag contentEditable={readOnly ? null : false}>
{children}
</Tag>
)

View File

@@ -39,7 +39,7 @@ export const output = `
</span>
</span>
</div>
<div contenteditable="false" draggable="true">
<div contenteditable="false">
<img src="https://example.com/image.png">
</div>
</div>

View File

@@ -44,7 +44,7 @@ export const output = `
</span>
</span>
</span>
<span contenteditable="false" draggable="true">
<span contenteditable="false">
<img>
</span>
</span>