From 697e9344ab44dbeeb2dd06874e67ace6542419f4 Mon Sep 17 00:00:00 2001 From: fay Date: Tue, 24 Jul 2018 15:54:37 +0800 Subject: [PATCH] update --- src/case/richeditor/niceditor/niceditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/case/richeditor/niceditor/niceditor.js b/src/case/richeditor/niceditor/niceditor.js index d92fa3103..b5829ab50 100644 --- a/src/case/richeditor/niceditor/niceditor.js +++ b/src/case/richeditor/niceditor/niceditor.js @@ -92,7 +92,7 @@ setValue: function (v) { v = v || ( isIE11Below() ? "" : "
"); - v = v.startWith("

") ? v : "

" + v + "

"; + v = ($(v)[0] && $(v)[0].nodeName === "P") ? v : "

" + v + "

"; this.instance.setContent(v); },