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
9b7017a1
Commit
9b7017a1
authored
Sep 24, 2014
by
techird
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of github.com:fex-team/kityminder into dev
parents
816ed14c
9063b233
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
+18
-7
status.js
src/core/status.js
+3
-1
editor.js
src/module/editor.js
+13
-3
editor.keyboard.js
src/module/editor.keyboard.js
+0
-2
editor.selection.js
src/module/editor.selection.js
+2
-1
No files found.
src/core/status.js
View file @
9b7017a1
...
@@ -44,7 +44,9 @@ kity.extendClass(Minder, {
...
@@ -44,7 +44,9 @@ kity.extendClass(Minder, {
rollbackStatus
:
function
()
{
rollbackStatus
:
function
()
{
this
.
setStatus
(
this
.
_rollbackStatus
);
this
.
setStatus
(
this
.
_rollbackStatus
);
},
},
getRollbackStatus
:
function
(){
return
this
.
_rollbackStatus
;
},
getStatus
:
function
()
{
getStatus
:
function
()
{
return
this
.
_status
;
return
this
.
_status
;
}
}
...
...
src/module/editor.js
View file @
9b7017a1
...
@@ -214,9 +214,13 @@ KityMinder.registerModule('TextEditModule', function() {
...
@@ -214,9 +214,13 @@ KityMinder.registerModule('TextEditModule', function() {
if
(
node
){
if
(
node
){
var
offset
=
e
.
getPosition
(
node
.
getRenderContainer
());
var
offset
=
e
.
getPosition
(
node
.
getRenderContainer
());
receiver
.
updateSelectionByMousePosition
(
offset
)
receiver
.
updateSelection
(
offset
)
.
updateSelectionByMousePosition
(
offset
)
.
updateContainerRangeBySel
();
.
updateSelection
(
offset
);
setTimeout
(
function
(){
receiver
.
updateContainerRangeBySel
();
});
}
}
...
@@ -297,6 +301,12 @@ KityMinder.registerModule('TextEditModule', function() {
...
@@ -297,6 +301,12 @@ KityMinder.registerModule('TextEditModule', function() {
},
},
'inputready.mousewheel textedit.mousewheel'
:
function
()
{
'inputready.mousewheel textedit.mousewheel'
:
function
()
{
receiver
.
setContainerStyle
();
receiver
.
setContainerStyle
();
},
'statuschange'
:
function
(
e
){
if
(
this
.
getRollbackStatus
()
==
'textedit'
){
this
.
fire
(
'contentchange'
);
}
}
}
}
}
...
...
src/module/editor.keyboard.js
View file @
9b7017a1
...
@@ -108,8 +108,6 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){
...
@@ -108,8 +108,6 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){
.
setHoldShow
();
.
setHoldShow
();
me
.
timer
=
setTimeout
(
function
()
{
me
.
timer
=
setTimeout
(
function
()
{
if
(
me
.
selection
.
isShow
()){
if
(
me
.
selection
.
isShow
()){
me
.
selection
.
setShow
();
me
.
selection
.
setShow
();
...
...
src/module/editor.selection.js
View file @
9b7017a1
...
@@ -71,7 +71,7 @@ Minder.Selection = kity.createClass( 'Selection', {
...
@@ -71,7 +71,7 @@ Minder.Selection = kity.createClass( 'Selection', {
this
.
offset
=
arrOffset
;
this
.
offset
=
arrOffset
;
return
this
;
return
this
;
}
}
this
.
_show
=
true
;
},
},
updatePosition
:
function
(
offset
){
updatePosition
:
function
(
offset
){
var
me
=
this
;
var
me
=
this
;
...
@@ -89,6 +89,7 @@ Minder.Selection = kity.createClass( 'Selection', {
...
@@ -89,6 +89,7 @@ Minder.Selection = kity.createClass( 'Selection', {
me
.
addShape
(
rect
);
me
.
addShape
(
rect
);
});
});
}
}
this
.
_show
=
true
;
return
this
;
return
this
;
},
},
collapse
:
function
(
toStart
){
collapse
:
function
(
toStart
){
...
...
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