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:
committed by
Ian Storm Taylor
parent
1fff68d625
commit
794e705c72
@@ -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>
|
||||
)
|
||||
|
@@ -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>
|
||||
|
@@ -44,7 +44,7 @@ export const output = `
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
<span contenteditable="false" draggable="true">
|
||||
<span contenteditable="false">
|
||||
<img>
|
||||
</span>
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user