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
4a15f236
Commit
4a15f236
authored
Jun 06, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Исправлен баг cо вставкой через билдер.
parent
d471eccc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
word/apiBuilder.js
word/apiBuilder.js
+14
-14
No files found.
word/apiBuilder.js
View file @
4a15f236
...
...
@@ -1191,17 +1191,6 @@
*/
ApiDocument
.
prototype
.
InsertContent
=
function
(
arrContent
)
{
var
oParagraph
=
this
.
Document
.
Content
[
this
.
Document
.
CurPos
.
ContentPos
];
if
(
!
oParagraph
||
!
(
oParagraph
instanceof
Paragraph
))
return
false
;
var
oNearestPos
=
{
Paragraph
:
oParagraph
,
ContentPos
:
oParagraph
.
Get_ParaContentPos
(
false
,
false
)
};
oParagraph
.
Check_NearestPos
(
oNearestPos
);
var
oSelectedContent
=
new
CSelectedContent
();
for
(
var
nIndex
=
0
,
nCount
=
arrContent
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
...
...
@@ -1212,9 +1201,6 @@
}
}
if
(
!
this
.
Document
.
Can_InsertContent
(
oSelectedContent
,
oNearestPos
))
return
false
;
if
(
this
.
Document
.
Is_SelectionUse
())
{
this
.
Document
.
Start_SilentMode
();
...
...
@@ -1223,6 +1209,20 @@
this
.
Document
.
Selection_Remove
(
true
);
}
var
oParagraph
=
this
.
Document
.
Content
[
this
.
Document
.
CurPos
.
ContentPos
];
if
(
!
oParagraph
||
!
(
oParagraph
instanceof
Paragraph
))
return
false
;
var
oNearestPos
=
{
Paragraph
:
oParagraph
,
ContentPos
:
oParagraph
.
Get_ParaContentPos
(
false
,
false
)
};
oParagraph
.
Check_NearestPos
(
oNearestPos
);
if
(
!
this
.
Document
.
Can_InsertContent
(
oSelectedContent
,
oNearestPos
))
return
false
;
this
.
Document
.
Insert_Content
(
oSelectedContent
,
oNearestPos
);
this
.
Document
.
Selection_Remove
(
true
);
oParagraph
.
Clear_NearestPosArray
();
...
...
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