1
0
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:
Soreine
2016-11-10 11:03:51 +01:00
parent 094cdf8a51
commit a319499f7c
20 changed files with 328 additions and 334 deletions

View File

@@ -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)
}
}