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
8e16d4a9
Commit
8e16d4a9
authored
Sep 03, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加换行机制
parent
76ad8d4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
editor.js
src/module/editor.js
+2
-4
editor.receiver.js
src/module/editor.receiver.js
+0
-9
No files found.
src/module/editor.js
View file @
8e16d4a9
...
@@ -266,9 +266,7 @@ KityMinder.registerModule('TextEditModule', function() {
...
@@ -266,9 +266,7 @@ KityMinder.registerModule('TextEditModule', function() {
},
},
'layoutfinish'
:
function
(
e
){
'layoutfinish'
:
function
(
e
){
if
(
e
.
node
===
receiver
.
minderNode
&&
(
this
.
getStatus
()
==
'textedit'
||
this
.
getStatus
()
==
'inputready'
)
)
{
//&& selectionReadyShow
if
(
e
.
node
===
receiver
.
minderNode
&&
(
this
.
getStatus
()
==
'textedit'
||
this
.
getStatus
()
==
'inputready'
)
)
{
//&& selectionReadyShow
receiver
receiver
.
setContainerStyle
();
.
setBaseOffset
()
.
setContainerStyle
();
}
}
},
},
'selectionclear'
:
function
()
{
'selectionclear'
:
function
()
{
...
@@ -289,7 +287,7 @@ KityMinder.registerModule('TextEditModule', function() {
...
@@ -289,7 +287,7 @@ KityMinder.registerModule('TextEditModule', function() {
km
.
setStatus
(
'normal'
);
km
.
setStatus
(
'normal'
);
receiver
.
clear
();
receiver
.
clear
();
},
},
'textedit.mousewheel'
:
function
()
{
'
inputready.mousewheel
textedit.mousewheel'
:
function
()
{
receiver
.
setContainerStyle
();
receiver
.
setContainerStyle
();
}
}
...
...
src/module/editor.receiver.js
View file @
8e16d4a9
...
@@ -111,10 +111,6 @@ Minder.Receiver = kity.createClass('Receiver', {
...
@@ -111,10 +111,6 @@ Minder.Receiver = kity.createClass('Receiver', {
getBaseOffset
:
function
()
{
getBaseOffset
:
function
()
{
return
this
.
textGroup
.
getRenderBox
(
'screen'
);
return
this
.
textGroup
.
getRenderBox
(
'screen'
);
},
},
setBaseOffset
:
function
(
refer
)
{
this
.
baseOffset
=
this
.
textGroup
.
getRenderBox
(
refer
||
this
.
km
.
getRenderContainer
());
return
this
;
},
setContainerStyle
:
function
()
{
setContainerStyle
:
function
()
{
var
textGroupBox
=
this
.
getBaseOffset
();
var
textGroupBox
=
this
.
getBaseOffset
();
this
.
container
.
style
.
cssText
=
';left:'
+
(
browser
.
ipad
?
'-'
:
''
)
+
this
.
container
.
style
.
cssText
=
';left:'
+
(
browser
.
ipad
?
'-'
:
''
)
+
...
@@ -222,11 +218,6 @@ Minder.Receiver = kity.createClass('Receiver', {
...
@@ -222,11 +218,6 @@ Minder.Receiver = kity.createClass('Receiver', {
this
.
selection
.
setHeight
((
this
.
minderNode
.
getData
(
'font-size'
)
||
this
.
minderNode
.
getStyle
(
'font-size'
))
*
1
);
this
.
selection
.
setHeight
((
this
.
minderNode
.
getData
(
'font-size'
)
||
this
.
minderNode
.
getStyle
(
'font-size'
))
*
1
);
return
this
;
return
this
;
},
},
_getRelativeValue
:
function
(
offset
){
this
.
getBaseOffset
();
offset
.
x
=
offset
.
x
-
this
.
baseOffset
.
x
;
offset
.
y
=
offset
.
y
-
this
.
baseOffset
.
y
;
},
updateSelectionByMousePosition
:
function
(
offset
,
dir
)
{
updateSelectionByMousePosition
:
function
(
offset
,
dir
)
{
var
me
=
this
;
var
me
=
this
;
...
...
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