Skip to content

Commit

Permalink
feat(release): release v1.0.62
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafrok committed Mar 23, 2018
1 parent 0988ae2 commit 2a72740
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 172 deletions.
6 changes: 3 additions & 3 deletions dist/kityminder.editor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* ====================================================
* kityminder-editor - v1.0.61 - 2018-03-11
* kityminder-editor - v1.0.62 - 2018-03-23
* https://github.com/fex-team/kityminder-editor
* GitHub: https://github.com/fex-team/kityminder-editor
* Copyright (c) 2018 ; Licensed
Expand Down Expand Up @@ -990,7 +990,7 @@ _p[12] = {
*/
function commitInputText(textNodes) {
var text = "";
var TAB_CHAR = " ", ENTER_CHAR = "\n", STR_CHECK = /\S/, SPACE_CHAR = " ", // 针对FF,SG,BD,LB,IE等浏览器下SPACE的charCode存在为32和160的情况做处理
var TAB_CHAR = "\t", ENTER_CHAR = "\n", STR_CHECK = /\S/, SPACE_CHAR = " ", // 针对FF,SG,BD,LB,IE等浏览器下SPACE的charCode存在为32和160的情况做处理
SPACE_CHAR_REGEXP = new RegExp("( |" + String.fromCharCode(160) + ")"), BR = document.createElement("br");
var isBold = false, isItalic = false;
for (var str, _divChildNodes, space_l, space_num, tab_num, i = 0, l = textNodes.length; i < l; i++) {
Expand Down Expand Up @@ -1110,7 +1110,7 @@ _p[12] = {
}
}
text = text.replace(/^\n*|\n*$/g, "");
text = text.replace(new RegExp("(\n|\r|\n\r)( |" + String.fromCharCode(160) + "){4}", "g"), "$1 ");
text = text.replace(new RegExp("(\n|\r|\n\r)( |" + String.fromCharCode(160) + "){4}", "g"), "$1\t");
minder.getSelectedNode().setText(text);
if (isBold) {
minder.queryCommandState("bold") || minder.execCommand("bold");
Expand Down
23 changes: 11 additions & 12 deletions dist/kityminder.editor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kityminder-editor",
"version": "1.0.61",
"version": "1.0.62",
"description": "A powerful mind map editor",
"main": "kityminder.editor.js",
"scripts": {
Expand Down
Loading

0 comments on commit 2a72740

Please sign in to comment.