1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-18 21:21:21 +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 = ( const content = (
<Tag <Tag contentEditable={readOnly ? null : false}>
contentEditable={readOnly ? null : false}
draggable={readOnly ? null : true}
>
{children} {children}
</Tag> </Tag>
) )

View File

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

View File

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