tabs to spaces whitespace

This commit is contained in:
Philipp Kühn
2018-11-08 22:03:10 +01:00
parent b8b82220ba
commit f04a6be6c1
114 changed files with 4214 additions and 4214 deletions

View File

@@ -3,35 +3,35 @@ import { history, undo, redo } from 'prosemirror-history'
export default class History extends Extension {
get name() {
return 'history'
}
get name() {
return 'history'
}
keys() {
const isMac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false
const keymap = {
'Mod-z': undo,
'Shift-Mod-z': redo,
}
keys() {
const isMac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false
const keymap = {
'Mod-z': undo,
'Shift-Mod-z': redo,
}
if (!isMac) {
keymap['Mod-y'] = redo
}
if (!isMac) {
keymap['Mod-y'] = redo
}
return keymap
}
return keymap
}
get plugins() {
return [
history(),
]
}
get plugins() {
return [
history(),
]
}
commands() {
return {
undo: () => undo,
redo: () => redo,
}
}
commands() {
return {
undo: () => undo,
redo: () => redo,
}
}
}