Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
4c9e7857
Commit
4c9e7857
authored
Oct 11, 2016
by
Oleg Korshul
Committed by
GitHub
Oct 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #79 from ONLYOFFICE/hotfix/v4.1.5
Hotfix/v4.1.5
parents
75a521cc
cef6dfae
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
11 deletions
+42
-11
cell/api.js
cell/api.js
+3
-3
common/Drawings/WorkEvents.js
common/Drawings/WorkEvents.js
+1
-1
common/Local/common.js
common/Local/common.js
+11
-0
common/apiBase.js
common/apiBase.js
+1
-1
common/text_input.js
common/text_input.js
+20
-0
slide/api.js
slide/api.js
+3
-3
word/api.js
word/api.js
+3
-3
No files found.
cell/api.js
View file @
4c9e7857
...
@@ -456,7 +456,7 @@ var editor;
...
@@ -456,7 +456,7 @@ var editor;
spreadsheet_api
.
prototype
.
asc_Copy
=
function
()
{
spreadsheet_api
.
prototype
.
asc_Copy
=
function
()
{
if
(
window
[
"
AscDesktopEditor
"
])
if
(
window
[
"
AscDesktopEditor
"
])
{
{
window
[
"
AscDesktopEditor
"
][
"
Copy
"
](
);
window
[
"
asc_desktop_copypaste
"
](
this
,
"
Copy
"
);
return
true
;
return
true
;
}
}
return
AscCommon
.
g_clipboardBase
.
Button_Copy
();
return
AscCommon
.
g_clipboardBase
.
Button_Copy
();
...
@@ -465,7 +465,7 @@ var editor;
...
@@ -465,7 +465,7 @@ var editor;
spreadsheet_api
.
prototype
.
asc_Paste
=
function
()
{
spreadsheet_api
.
prototype
.
asc_Paste
=
function
()
{
if
(
window
[
"
AscDesktopEditor
"
])
if
(
window
[
"
AscDesktopEditor
"
])
{
{
window
[
"
AscDesktopEditor
"
][
"
Paste
"
](
);
window
[
"
asc_desktop_copypaste
"
](
this
,
"
Paste
"
);
return
true
;
return
true
;
}
}
if
(
!
AscCommon
.
g_clipboardBase
.
IsWorking
())
{
if
(
!
AscCommon
.
g_clipboardBase
.
IsWorking
())
{
...
@@ -477,7 +477,7 @@ var editor;
...
@@ -477,7 +477,7 @@ var editor;
spreadsheet_api
.
prototype
.
asc_Cut
=
function
()
{
spreadsheet_api
.
prototype
.
asc_Cut
=
function
()
{
if
(
window
[
"
AscDesktopEditor
"
])
if
(
window
[
"
AscDesktopEditor
"
])
{
{
window
[
"
AscDesktopEditor
"
][
"
Cut
"
](
);
window
[
"
asc_desktop_copypaste
"
](
this
,
"
Cut
"
);
return
true
;
return
true
;
}
}
return
AscCommon
.
g_clipboardBase
.
Button_Cut
();
return
AscCommon
.
g_clipboardBase
.
Button_Cut
();
...
...
common/Drawings/WorkEvents.js
View file @
4c9e7857
...
@@ -2021,7 +2021,7 @@
...
@@ -2021,7 +2021,7 @@
if
(
this
.
HtmlPage
.
m_oApi
.
isMobileVersion
)
if
(
this
.
HtmlPage
.
m_oApi
.
isMobileVersion
)
{
{
var
_w
=
this
.
HtmlPage
.
m_oEditor
.
HtmlElement
.
width
;
var
_w
=
this
.
HtmlPage
.
m_oEditor
.
HtmlElement
.
width
;
if
(
this
.
bIsRetinaSupport
)
if
(
this
.
HtmlPage
.
bIsRetinaSupport
)
{
{
_w
>>=
1
;
_w
>>=
1
;
}
}
...
...
common/Local/common.js
View file @
4c9e7857
...
@@ -233,6 +233,17 @@ window["asc_initAdvancedOptions"] = function(_code)
...
@@ -233,6 +233,17 @@ window["asc_initAdvancedOptions"] = function(_code)
_editor
.
_onNeedParams
(
undefined
,
(
_code
==
90
||
_code
==
91
)
?
true
:
undefined
);
_editor
.
_onNeedParams
(
undefined
,
(
_code
==
90
||
_code
==
91
)
?
true
:
undefined
);
};
};
// copy/paste focus error!!!
window
[
"
asc_desktop_copypaste
"
]
=
function
(
_api
,
_method
)
{
var
bIsFocus
=
_api
.
asc_IsFocus
();
if
(
!
bIsFocus
)
_api
.
asc_enableKeyEvents
(
true
);
window
[
"
AscDesktopEditor
"
][
_method
]();
if
(
!
bIsFocus
)
_api
.
asc_enableKeyEvents
(
false
);
}
// меняем среду
// меняем среду
//AscBrowser.isSafari = false;
//AscBrowser.isSafari = false;
//AscBrowser.isSafariMacOs = false;
//AscBrowser.isSafariMacOs = false;
...
...
common/apiBase.js
View file @
4c9e7857
...
@@ -785,7 +785,7 @@
...
@@ -785,7 +785,7 @@
{
{
var
_loadedUrl
=
this
.
ImageLoader
.
LoadImage
(
AscCommon
.
getFullImageSrc2
(
sLocalImage
),
1
);
var
_loadedUrl
=
this
.
ImageLoader
.
LoadImage
(
AscCommon
.
getFullImageSrc2
(
sLocalImage
),
1
);
if
(
_loadedUrl
!=
null
)
if
(
_loadedUrl
!=
null
)
fCallback
();
fCallback
(
_loadedUrl
);
else
else
this
.
asc_replaceLoadImageCallback
(
fCallback
);
this
.
asc_replaceLoadImageCallback
(
fCallback
);
};
};
...
...
common/text_input.js
View file @
4c9e7857
...
@@ -160,6 +160,8 @@
...
@@ -160,6 +160,8 @@
// еще один режим для ie & edge
// еще один режим для ie & edge
this
.
IsUseInputEventOnlyWithCtx
=
(
AscCommon
.
AscBrowser
.
isIE
)
?
true
:
false
;
this
.
IsUseInputEventOnlyWithCtx
=
(
AscCommon
.
AscBrowser
.
isIE
)
?
true
:
false
;
this
.
IsInitialInputContext
=
false
;
this
.
IsInitialInputContext
=
false
;
this
.
IsDisableKeyPress
=
false
;
}
}
CTextInput
.
prototype
=
CTextInput
.
prototype
=
...
@@ -234,14 +236,32 @@
...
@@ -234,14 +236,32 @@
var
oThis
=
this
;
var
oThis
=
this
;
this
.
HtmlArea
[
"
onkeydown
"
]
=
function
(
e
)
this
.
HtmlArea
[
"
onkeydown
"
]
=
function
(
e
)
{
{
if
(
AscCommon
.
AscBrowser
.
isSafariMacOs
)
{
var
cmdButton
=
(
e
.
ctrlKey
||
e
.
metaKey
)
?
true
:
false
;
var
buttonCode
=
((
e
.
keyCode
==
67
)
||
(
e
.
keyCode
==
88
)
||
(
e
.
keyCode
==
86
));
if
(
cmdButton
&&
buttonCode
)
oThis
.
IsDisableKeyPress
=
true
;
else
oThis
.
IsDisableKeyPress
=
false
;
}
return
oThis
.
onKeyDown
(
e
);
return
oThis
.
onKeyDown
(
e
);
};
};
this
.
HtmlArea
[
"
onkeypress
"
]
=
function
(
e
)
this
.
HtmlArea
[
"
onkeypress
"
]
=
function
(
e
)
{
{
if
(
oThis
.
IsDisableKeyPress
==
true
)
{
// macOS Sierra send keypress before copy event
oThis
.
IsDisableKeyPress
=
false
;
var
cmdButton
=
(
e
.
ctrlKey
||
e
.
metaKey
)
?
true
:
false
;
if
(
cmdButton
)
return
;
}
return
oThis
.
onKeyPress
(
e
);
return
oThis
.
onKeyPress
(
e
);
};
};
this
.
HtmlArea
[
"
onkeyup
"
]
=
function
(
e
)
this
.
HtmlArea
[
"
onkeyup
"
]
=
function
(
e
)
{
{
oThis
.
IsDisableKeyPress
=
false
;
return
oThis
.
onKeyUp
(
e
);
return
oThis
.
onKeyUp
(
e
);
};
};
...
...
slide/api.js
View file @
4c9e7857
...
@@ -1826,7 +1826,7 @@ background-repeat: no-repeat;\
...
@@ -1826,7 +1826,7 @@ background-repeat: no-repeat;\
{
{
if
(
window
[
"
AscDesktopEditor
"
])
if
(
window
[
"
AscDesktopEditor
"
])
{
{
window
[
"
AscDesktopEditor
"
][
"
Copy
"
](
);
window
[
"
asc_desktop_copypaste
"
](
this
,
"
Copy
"
);
return
true
;
return
true
;
}
}
return
AscCommon
.
g_clipboardBase
.
Button_Copy
();
return
AscCommon
.
g_clipboardBase
.
Button_Copy
();
...
@@ -1839,7 +1839,7 @@ background-repeat: no-repeat;\
...
@@ -1839,7 +1839,7 @@ background-repeat: no-repeat;\
{
{
if
(
window
[
"
AscDesktopEditor
"
])
if
(
window
[
"
AscDesktopEditor
"
])
{
{
window
[
"
AscDesktopEditor
"
][
"
Cut
"
](
);
window
[
"
asc_desktop_copypaste
"
](
this
,
"
Cut
"
);
return
true
;
return
true
;
}
}
return
AscCommon
.
g_clipboardBase
.
Button_Cut
();
return
AscCommon
.
g_clipboardBase
.
Button_Cut
();
...
@@ -1848,7 +1848,7 @@ background-repeat: no-repeat;\
...
@@ -1848,7 +1848,7 @@ background-repeat: no-repeat;\
{
{
if
(
window
[
"
AscDesktopEditor
"
])
if
(
window
[
"
AscDesktopEditor
"
])
{
{
window
[
"
AscDesktopEditor
"
][
"
Paste
"
](
);
window
[
"
asc_desktop_copypaste
"
](
this
,
"
Paste
"
);
return
true
;
return
true
;
}
}
...
...
word/api.js
View file @
4c9e7857
...
@@ -1901,7 +1901,7 @@ background-repeat: no-repeat;\
...
@@ -1901,7 +1901,7 @@ background-repeat: no-repeat;\
{
{
if
(
window
[
"
AscDesktopEditor
"
])
if
(
window
[
"
AscDesktopEditor
"
])
{
{
window
[
"
AscDesktopEditor
"
][
"
Copy
"
](
);
window
[
"
asc_desktop_copypaste
"
](
this
,
"
Copy
"
);
return
true
;
return
true
;
}
}
return
AscCommon
.
g_clipboardBase
.
Button_Copy
();
return
AscCommon
.
g_clipboardBase
.
Button_Copy
();
...
@@ -1914,7 +1914,7 @@ background-repeat: no-repeat;\
...
@@ -1914,7 +1914,7 @@ background-repeat: no-repeat;\
{
{
if
(
window
[
"
AscDesktopEditor
"
])
if
(
window
[
"
AscDesktopEditor
"
])
{
{
window
[
"
AscDesktopEditor
"
][
"
Cut
"
](
);
window
[
"
asc_desktop_copypaste
"
](
this
,
"
Cut
"
);
return
true
;
return
true
;
}
}
return
AscCommon
.
g_clipboardBase
.
Button_Cut
();
return
AscCommon
.
g_clipboardBase
.
Button_Cut
();
...
@@ -1923,7 +1923,7 @@ background-repeat: no-repeat;\
...
@@ -1923,7 +1923,7 @@ background-repeat: no-repeat;\
{
{
if
(
window
[
"
AscDesktopEditor
"
])
if
(
window
[
"
AscDesktopEditor
"
])
{
{
window
[
"
AscDesktopEditor
"
][
"
Paste
"
](
);
window
[
"
asc_desktop_copypaste
"
](
this
,
"
Paste
"
);
return
true
;
return
true
;
}
}
if
(
!
this
.
WordControl
.
m_oLogicDocument
)
if
(
!
this
.
WordControl
.
m_oLogicDocument
)
...
...
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