mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 10:51:44 +02:00
Enforce 2-spaces indentation
This commit is contained in:
@@ -160,8 +160,8 @@ class Images extends React.Component {
|
||||
|
||||
onDrop = (e, data, state, editor) => {
|
||||
switch (data.type) {
|
||||
case 'files': return this.onDropOrPasteFiles(e, data, state, editor)
|
||||
case 'node': return this.onDropNode(e, data, state)
|
||||
case 'files': return this.onDropOrPasteFiles(e, data, state, editor)
|
||||
case 'node': return this.onDropNode(e, data, state)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -222,8 +222,8 @@ class Images extends React.Component {
|
||||
|
||||
onPaste = (e, data, state, editor) => {
|
||||
switch (data.type) {
|
||||
case 'files': return this.onDropOrPasteFiles(e, data, state, editor)
|
||||
case 'text': return this.onPasteText(e, data, state)
|
||||
case 'files': return this.onDropOrPasteFiles(e, data, state, editor)
|
||||
case 'text': return this.onPasteText(e, data, state)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user