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
bebae1e6
Commit
bebae1e6
authored
Apr 15, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed highlight
parent
7e847348
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
saveto.js
src/adapter/saveto.js
+3
-2
keyboard.js
src/module/keyboard.js
+1
-1
No files found.
src/adapter/saveto.js
View file @
bebae1e6
...
...
@@ -17,7 +17,7 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
utils
.
each
(
KityMinder
.
getAllRegisteredProtocals
(),
function
(
k
)
{
var
p
=
KityMinder
.
findProtocal
(
k
);
if
(
p
.
encode
)
{
if
(
p
.
encode
)
{
var
text
=
p
.
fileDescription
+
'('
+
p
.
fileExtension
+
')'
;
options
.
value
.
push
(
k
);
options
.
items
.
push
(
text
);
...
...
@@ -41,8 +41,9 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
var
data
=
me
.
exportData
(
res
.
value
);
var
p
=
KityMinder
.
findProtocal
(
res
.
value
);
var
filename
=
me
.
getMinderTitle
()
+
p
.
fileExtension
;
if
(
p
.
fileExtension
===
''
)
{
if
(
typeof
(
data
)
==
'string'
)
{
}
else
if
(
typeof
(
data
)
==
'string'
)
{
var
url
=
'data:text/plain; utf-8,'
+
encodeURI
(
data
);
doDownload
(
url
,
filename
);
}
else
if
(
data
&&
data
.
then
)
{
...
...
src/module/keyboard.js
View file @
bebae1e6
...
...
@@ -143,8 +143,8 @@ KityMinder.registerModule( "KeyboardModule", function () {
break
;
case
keys
.
Backspace
:
case
keys
.
Del
:
this
.
execCommand
(
'removenode'
);
e
.
preventDefault
();
if
(
this
.
queryCommandState
(
'removenode'
)
!==
-
1
)
this
.
execCommand
(
'removenode'
);
break
;
case
keys
.
Left
:
...
...
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