From 75cc1b7ae8751549a32ec9211f5ad311767967d2 Mon Sep 17 00:00:00 2001 From: fay Date: Mon, 16 Jul 2018 16:12:15 +0800 Subject: [PATCH] update --- src/case/richeditor/niceditor/niceditor.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/case/richeditor/niceditor/niceditor.js b/src/case/richeditor/niceditor/niceditor.js index bd0895c0b8..7a01fc8f94 100644 --- a/src/case/richeditor/niceditor/niceditor.js +++ b/src/case/richeditor/niceditor/niceditor.js @@ -254,6 +254,13 @@ } }, + restoreRngAndClearRange: function () { + if (this.savedRange) { + this.savedRange.setStart(this.savedRange.endContainer, this.savedRange.endOffset); + this.selRng(this.savedRange, this.savedSel); + } + }, + keyDown: function (e, t) { this.ne.fireEvent("keydown", e); },