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
ff77b6ff
Commit
ff77b6ff
authored
May 28, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
挪动接收框到body下
parent
ab951fb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
editor.js
src/module/editor.js
+3
-0
editor.receiver.js
src/module/editor.receiver.js
+1
-1
No files found.
src/module/editor.js
View file @
ff77b6ff
...
...
@@ -48,6 +48,9 @@ KityMinder.registerModule( "TextEditModule", function () {
var
dragmoveTimer
;
return
{
"events"
:
{
'ready'
:
function
(){
this
.
_renderTarget
.
appendChild
(
receiver
.
container
);
},
//插入光标
"afterinitstyle"
:
function
(){
this
.
getRenderContainer
().
addShape
(
sel
);
...
...
src/module/editor.receiver.js
View file @
ff77b6ff
...
...
@@ -26,7 +26,7 @@ Minder.Receiver = kity.createClass( 'Receiver', {
var
_div
=
document
.
createElement
(
'div'
);
_div
.
setAttribute
(
'contenteditable'
,
true
);
_div
.
className
=
'km_receiver'
;
this
.
container
=
document
.
body
.
insertBefore
(
_div
,
document
.
body
.
firstChild
)
;
this
.
container
=
_div
;
if
(
browser
.
ie
&&
browser
.
version
==
11
)
{
utils
.
listen
(
this
.
container
,
'keydown keypress keyup'
,
function
(
e
)
{
me
.
keyboardEvents
.
call
(
me
,
new
MinderEvent
(
e
.
type
==
'keyup'
?
"beforekeyup"
:
e
.
type
,
e
)
);
...
...
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