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
2a02978c
Commit
2a02978c
authored
Jun 07, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now the cursor stops on leaving/entering inline classes inside a paragraph content.
parent
122e1e5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
31 deletions
+47
-31
word/Editor/ParagraphContentBase.js
word/Editor/ParagraphContentBase.js
+47
-31
No files found.
word/Editor/ParagraphContentBase.js
View file @
2a02978c
...
...
@@ -1720,19 +1720,27 @@ CParagraphContentWithParagraphLikeContent.prototype.Get_LeftPos = function(Searc
var
CurPos
=
(
true
===
UseContentPos
?
ContentPos
.
Get
(
Depth
)
:
this
.
Content
.
length
-
1
);
this
.
Content
[
CurPos
].
Get_LeftPos
(
SearchPos
,
ContentPos
,
Depth
+
1
,
UseContentPos
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
if
(
true
===
SearchPos
.
Found
)
if
(
true
===
SearchPos
.
Found
)
return
true
;
CurPos
--
;
while
(
CurPos
>=
0
)
if
(
CurPos
>=
0
&&
this
.
Content
[
CurPos
+
1
].
IsStopCursorOnEntryExit
())
{
this
.
Content
[
CurPos
].
Get_EndPos
(
false
,
SearchPos
.
Pos
,
Depth
+
1
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
SearchPos
.
Found
=
true
;
return
true
;
}
while
(
CurPos
>=
0
)
{
this
.
Content
[
CurPos
].
Get_LeftPos
(
SearchPos
,
ContentPos
,
Depth
+
1
,
false
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
if
(
true
===
SearchPos
.
Found
)
if
(
true
===
SearchPos
.
Found
)
return
true
;
CurPos
--
;
...
...
@@ -1748,20 +1756,28 @@ CParagraphContentWithParagraphLikeContent.prototype.Get_RightPos = function(Sear
var
CurPos
=
(
true
===
UseContentPos
?
ContentPos
.
Get
(
Depth
)
:
0
);
this
.
Content
[
CurPos
].
Get_RightPos
(
SearchPos
,
ContentPos
,
Depth
+
1
,
UseContentPos
,
StepEnd
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
if
(
true
===
SearchPos
.
Found
)
if
(
true
===
SearchPos
.
Found
)
return
true
;
CurPos
++
;
var
Count
=
this
.
Content
.
length
;
while
(
CurPos
<
this
.
Content
.
length
)
if
(
CurPos
<
Count
&&
this
.
Content
[
CurPos
-
1
].
IsStopCursorOnEntryExit
())
{
this
.
Content
[
CurPos
].
Get_StartPos
(
SearchPos
.
Pos
,
Depth
+
1
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
SearchPos
.
Found
=
true
;
return
true
;
}
while
(
CurPos
<
this
.
Content
.
length
)
{
this
.
Content
[
CurPos
].
Get_RightPos
(
SearchPos
,
ContentPos
,
Depth
+
1
,
false
,
StepEnd
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
SearchPos
.
Pos
.
Update
(
CurPos
,
Depth
);
if
(
true
===
SearchPos
.
Found
)
if
(
true
===
SearchPos
.
Found
)
return
true
;
CurPos
++
;
...
...
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