diff --git a/src/editor/Editr.vue b/src/editor/Editr.vue index 74e5b02..828dc5c 100644 --- a/src/editor/Editr.vue +++ b/src/editor/Editr.vue @@ -160,11 +160,13 @@ export default { } } }, - exec (cmd, arg, sel){ + exec (cmd, arg, sel, clearSelectionAfter){ sel !== false && this.selection && this.restoreSelection(this.selection); document.execCommand(cmd, false, arg||""); - this.clearSelection(); - + if (clearSelectionAfter !== false) { + this.clearSelection(); + } + this.$nextTick(this.emit); }, diff --git a/src/editor/locales/index.js b/src/editor/locales/index.js index 6643034..eeecb37 100644 --- a/src/editor/locales/index.js +++ b/src/editor/locales/index.js @@ -2,7 +2,7 @@ import dutch from "./dutch"; import hungarian from "./hungarian"; import english from "./english"; import portuguese from "./portuguese"; -import italian from "./italian"; +import german from './german'; import spanish from "./spanish"; export default { diff --git a/src/editor/modules/image.vue b/src/editor/modules/image.vue index 03bdad4..8e11e96 100644 --- a/src/editor/modules/image.vue +++ b/src/editor/modules/image.vue @@ -12,7 +12,8 @@