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
59dfe73f
Commit
59dfe73f
authored
8 years ago
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with positioning of cursor after function InsertContent.
parent
0adcf316
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
word/Editor/Document.js
word/Editor/Document.js
+1
-0
word/Editor/DocumentContent.js
word/Editor/DocumentContent.js
+1
-0
No files found.
word/Editor/Document.js
View file @
59dfe73f
...
...
@@ -5831,6 +5831,7 @@ CDocument.prototype.Insert_Content = function(SelectedContent, NearPos)
this
.
Selection
.
Use
=
true
;
this
.
Selection
.
StartPos
=
DstIndex
;
this
.
Selection
.
EndPos
=
DstIndex
+
ElementsCount
-
1
;
this
.
CurPos
.
ContentPos
=
DstIndex
+
ElementsCount
-
1
;
}
if
(
docpostype_DrawingObjects
!==
this
.
CurPos
.
Type
)
...
...
This diff is collapsed.
Click to expand it.
word/Editor/DocumentContent.js
View file @
59dfe73f
...
...
@@ -4471,6 +4471,7 @@ CDocumentContent.prototype.Insert_Content = function(Selecte
this
.
Selection
.
Use
=
true
;
this
.
Selection
.
StartPos
=
DstIndex
;
this
.
Selection
.
EndPos
=
DstIndex
+
ElementsCount
-
1
;
this
.
CurPos
.
ContentPos
=
DstIndex
+
ElementsCount
-
1
;
}
if
(
true
===
bNeedSelect
)
...
...
This diff is collapsed.
Click to expand it.
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