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
76ad8d4a
Commit
76ad8d4a
authored
Sep 03, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加换行机制
parent
86d5934d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
editor.keyboard.js
src/module/editor.keyboard.js
+3
-1
editor.selection.js
src/module/editor.selection.js
+5
-0
No files found.
src/module/editor.keyboard.js
View file @
76ad8d4a
...
...
@@ -104,7 +104,8 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){
me
.
selection
.
updateOffsetByTextData
(
me
.
re
.
textData
)
.
updatePosition
();
.
updatePosition
()
.
setHoldShow
();
...
...
@@ -305,6 +306,7 @@ Minder.keyboarder = kity.createClass('keyboarder', function(){
}
}
},
//处理软回车操作
_handlerEnterkey
:
function
(){
var
rng
=
this
.
range
;
var
br
=
document
.
createElement
(
'br'
);
...
...
src/module/editor.selection.js
View file @
76ad8d4a
...
...
@@ -141,6 +141,11 @@ Minder.Selection = kity.createClass( 'Selection', {
this
.
_show
=
false
;
return
this
;
},
setHoldShow
:
function
(){
this
.
setStyle
(
'display'
,
''
);
clearInterval
(
this
.
timer
);
return
this
;
},
setShow
:
function
()
{
this
.
bringTop
();
clearInterval
(
this
.
timer
);
...
...
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