mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 05:01:17 +02:00
remove draggable attribute from void nodes (#1731)
This commit is contained in:
committed by
Ian Storm Taylor
parent
1fff68d625
commit
794e705c72
@@ -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>
|
||||||
)
|
)
|
||||||
|
@@ -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>
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user