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
dd7b7d6d
Commit
dd7b7d6d
authored
Dec 05, 2016
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
insert images in collaboration mode
parent
8f1d24a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
cell/native/native.js
cell/native/native.js
+28
-2
common/editorscommon.js
common/editorscommon.js
+4
-0
No files found.
cell/native/native.js
View file @
dd7b7d6d
...
...
@@ -6285,7 +6285,7 @@ window["native"]["offline_apply_event"] = function(type,params) {
break
;
}
case
9
:
// ASC_MENU_EVENT_TYPE_IMAGE
case
9
:
// ASC_MENU_EVENT_TYPE_IMAGE
{
var
ws
=
_api
.
wb
.
getWorksheet
();
if
(
ws
&&
ws
.
objectRender
&&
ws
.
objectRender
.
controller
)
{
...
...
@@ -6439,6 +6439,13 @@ window["native"]["offline_apply_event"] = function(type,params) {
}
break
;
}
case
12
:
// ASC_MENU_EVENT_TYPE_TABLESTYLES
{
var
wb
=
_api
.
wb
;
wb
.
getTablePictures
();
break
;
}
case
52
:
// ASC_MENU_EVENT_TYPE_INSERT_HYPERLINK
{
...
...
@@ -7299,7 +7306,7 @@ window["native"]["offline_apply_event"] = function(type,params) {
case
11010
:
// ASC_SOCKET_EVENT_TYPE_ON_DISCONNECT
{
break
;
}
case
11020
:
// ASC_SOCKET_EVENT_TYPE_TRY_RECONNECT
...
...
@@ -7307,6 +7314,25 @@ window["native"]["offline_apply_event"] = function(type,params) {
var
t
=
_api
.
CoAuthoringApi
.
_CoAuthoringApi
;
delete
t
.
sockjs
;
t
.
_initSocksJs
();
break
;
}
case
21000
:
// ASC_COAUTH_EVENT_TYPE_INSERT_URL_IMAGE
{
var
urls
=
JSON
.
parse
(
params
[
0
]);
AscCommon
.
g_oDocumentUrls
.
addUrls
(
urls
);
var
firstUrl
;
for
(
var
i
in
urls
)
{
if
(
urls
.
hasOwnProperty
(
i
))
{
firstUrl
=
urls
[
i
];
break
;
}
}
params
[
0
]
=
firstUrl
;
_return
=
_s
.
offline_addImageDrawingObject
(
params
);
break
;
}
default
:
...
...
common/editorscommon.js
View file @
dd7b7d6d
...
...
@@ -153,6 +153,10 @@ DocumentUrls.prototype = {
this
.
urlsReverse
[
url
]
=
i
;
this
.
imageCount
++
;
}
if
(
window
[
"
IS_NATIVE_EDITOR
"
])
{
window
[
"
native
"
][
"
setUrlsCount
"
](
this
.
imageCount
);
}
},
addImageUrl
:
function
(
strPath
,
url
){
var
urls
=
{};
...
...
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