forked from kindsoft/kindeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [Chrome] 在 Chrome 上添加标题之后换行 JS 报错
- Loading branch information
longhao.llh
committed
Mar 7, 2019
1 parent
a0daa90
commit 6e2d34e
Showing
4 changed files
with
13 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/******************************************************************************* | ||
* KindEditor - WYSIWYG HTML Editor for Internet | ||
* Copyright (C) 2006-2017 kindsoft.net | ||
* Copyright (C) 2006-2019 kindsoft.net | ||
* | ||
* @author Roddy <[email protected]> | ||
* @website http://www.kindsoft.net/ | ||
* @licence http://www.kindsoft.net/license.php | ||
* @version 4.1.12 (2017-04-12) | ||
* @version 4.1.12 (2019-03-07) | ||
*******************************************************************************/ | ||
(function (window, undefined) { | ||
if (window.KindEditor) { | ||
|
@@ -19,7 +19,7 @@ if (!window.console) { | |
if (!console.log) { | ||
console.log = function () {}; | ||
} | ||
var _VERSION = '4.1.12 (2017-04-12)', | ||
var _VERSION = '4.1.12 (2019-03-07)', | ||
_ua = navigator.userAgent.toLowerCase(), | ||
_IE = _ua.indexOf('msie') > -1 && _ua.indexOf('opera') == -1, | ||
_NEWIE = _ua.indexOf('msie') == -1 && _ua.indexOf('trident') > -1, | ||
|
@@ -4728,20 +4728,6 @@ function _bindNewlineEvent() { | |
if (!pSkipTagMap[tagName]) { | ||
_nativeCommand(doc, 'formatblock', '<p>'); | ||
} | ||
var div = self.cmd.commonAncestor('div'); | ||
if (div) { | ||
var p = K('<p></p>'), | ||
child = div[0].firstChild; | ||
while (child) { | ||
var next = child.nextSibling; | ||
p.append(child); | ||
child = next; | ||
} | ||
div.before(p); | ||
div.remove(); | ||
self.cmd.range.selectNodeContents(p[0]); | ||
self.cmd.select(); | ||
} | ||
}); | ||
} | ||
function _bindTabEvent() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters