Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
b940c775
Commit
b940c775
authored
May 07, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新选区
parent
e157fb6a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
19 deletions
+16
-19
CHANGELOG.md
CHANGELOG.md
+5
-7
hyperlink.js
dialogs/hyperlink/hyperlink.js
+0
-1
editor.js
src/module/editor.js
+6
-6
editor.receiver.js
src/module/editor.receiver.js
+1
-1
editor.selection.js
src/module/editor.selection.js
+2
-0
hyperlink.js
src/module/hyperlink.js
+2
-4
No files found.
CHANGELOG.md
View file @
b940c775
...
...
@@ -4,16 +4,14 @@
###功能更新
1.
添加保存时可修改文件名
2.
添加超链接功能
3.
优化了当输入中文时,中文显示位置与光标距离过远的问题
4.
选中节点时,按F2直接进入文字编辑状态
5.
添加选中节点后可直接输入文字
6.
添加全部展开和部分展开功能
3.
选中节点时,按F2直接进入文字编辑状态
###问题修复
1.
修复当滚动鼠标滚轮时,光标不跟着移动的问题
2.
优化了拖拽节点操作体验
3.
优化了大文件加载体验
4.
修复回退操作后所选节点未回选问题
3.
修复回退操作后所选节点未回选问题
4.
添加选中节点后可直接输入文字
5.
优化了当输入中文时,中文显示位置与光标距离过远的问题
## v1.1.2
...
...
dialogs/hyperlink/hyperlink.js
View file @
b940c775
...
...
@@ -24,7 +24,6 @@
$w
.
kmui
().
hide
();
});
var
url
=
km
.
queryCommandValue
(
'hyperlink'
);
var
$input
=
$w
.
find
(
'#hyperlink_href'
);
$input
.
val
(
url
||
'http://'
);
setTimeout
(
function
(){
...
...
src/module/editor.js
View file @
b940c775
...
...
@@ -20,7 +20,7 @@ KityMinder.registerModule( "TextEditModule", function () {
var
selectionByClick
=
false
;
var
dragmoveTimer
;
return
{
"events"
:
{
//插入光标
...
...
@@ -62,7 +62,7 @@ KityMinder.registerModule( "TextEditModule", function () {
.
setBaseOffset
()
.
setContainerStyle
()
.
setSelectionHeight
()
.
setCurrentIndex
(
e
.
getPosition
())
.
setCurrentIndex
(
e
.
getPosition
(
this
.
getRenderContainer
()
))
.
updateSelection
()
.
setRange
(
range
);
sel
.
setData
(
'relatedNode'
,
node
);
...
...
@@ -73,6 +73,7 @@ KityMinder.registerModule( "TextEditModule", function () {
selectionByClick
=
false
;
}
km
.
setStatus
(
'textedit'
)
lastMousedownTimer
=
+
new
Date
;
}
}
},
...
...
@@ -125,6 +126,7 @@ KityMinder.registerModule( "TextEditModule", function () {
if
(
mouseDownStatus
){
if
(
!
sel
.
collapsed
){
try
{
receiver
.
updateRange
(
range
)
}
catch
(
e
){
...
...
@@ -171,10 +173,8 @@ KityMinder.registerModule( "TextEditModule", function () {
if
(
mouseDownStatus
){
e
.
stopPropagationImmediately
();
var
offset
=
e
.
getPosition
();
if
(
Math
.
abs
(
offset
.
y
-
lastEvtPosition
.
y
)
>=
1
&&
Math
.
abs
(
lastEvtPosition
.
x
-
offset
.
x
)
<=
1
){
var
offset
=
e
.
getPosition
(
this
.
getRenderContainer
());
if
(
Math
.
abs
(
offset
.
y
-
lastEvtPosition
.
y
)
>=
2
&&
Math
.
abs
(
lastEvtPosition
.
x
-
offset
.
x
)
<=
2
){
sel
.
setHide
();
mouseDownStatus
=
false
;
return
;
...
...
src/module/editor.receiver.js
View file @
b940c775
...
...
@@ -349,7 +349,7 @@ Minder.Receiver = kity.createClass( 'Receiver', {
endOffset
=
this
.
textData
[
this
.
selection
.
endOffset
],
width
=
0
;
if
(
this
.
selection
.
collapsed
)
{
this
.
selection
.
updateShow
(
startOffset
||
this
.
textData
[
this
.
textData
.
length
-
1
],
0
);
this
.
selection
.
updateShow
(
startOffset
||
this
.
textData
[
this
.
textData
.
length
-
1
],
1
);
return
this
;
}
if
(
!
endOffset
)
{
...
...
src/module/editor.selection.js
View file @
b940c775
...
...
@@ -99,7 +99,9 @@ Minder.Selection = kity.createClass( 'Selection', {
var
me
=
this
,
state
=
''
;
me
.
setStyle
(
'display'
,
''
);
if
(
this
.
collapsed
){
me
.
setOpacity
(
1
);
this
.
timer
=
setInterval
(
function
()
{
me
.
setStyle
(
'display'
,
state
);
state
=
state
?
''
:
'none'
;
...
...
src/module/hyperlink.js
View file @
b940c775
...
...
@@ -29,10 +29,8 @@ KityMinder.registerModule( "hyperlink", function () {
return
result
;
},
queryValue
:
function
(
km
)
{
if
(
km
.
queryCommandState
(
'hyperlink'
)
==
1
)
{
var
node
=
km
.
getSelectedNode
();
return
node
.
getData
(
'hyperlink'
);
}
var
node
=
km
.
getSelectedNode
();
return
node
.
getData
(
'hyperlink'
);
}
}
),
"unhyperlink"
:
kity
.
createClass
(
"hyperlink"
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment