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
f470bf53
Commit
f470bf53
authored
May 12, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with removing content control.
parent
3c1a3105
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
word/Editor/Document.js
word/Editor/Document.js
+11
-0
No files found.
word/Editor/Document.js
View file @
f470bf53
...
...
@@ -1247,6 +1247,7 @@ function CSelectedElementsInfo()
this
.
m_oField
=
null
;
// Поле, в котором находится выделение
this
.
m_oCell
=
null
;
// Выделенная ячейка (специальная ситуация, когда выделена ровно одна ячейка)
this
.
m_oBlockLevelSdt
=
null
;
// Если мы находимся в классе CBlockLevelSdt
this
.
m_oInlineLevelSdt
=
null
;
// Если мы находимся в классе CInlineLevelSdt
this
.
Reset
=
function
()
{
...
...
@@ -1344,6 +1345,14 @@ CSelectedElementsInfo.prototype.GetBlockLevelSdt = function()
{
return
this
.
m_oBlockLevelSdt
;
};
CSelectedElementsInfo
.
prototype
.
SetInlineLevelSdt
=
function
(
oSdt
)
{
this
.
m_oInlineLevelSdt
=
oSdt
;
};
CSelectedElementsInfo
.
prototype
.
GetInlineLevelSdt
=
function
()
{
return
this
.
m_oInlineLevelSdt
;
};
var
document_compatibility_mode_Word14
=
14
;
var
document_compatibility_mode_Word15
=
15
;
...
...
@@ -15187,10 +15196,12 @@ CDocument.prototype.RemoveContentControl = function(Id)
var
oBlockLevelSdt
=
this
.
TableId
.
Get_ById
(
Id
);
if
(
oBlockLevelSdt
&&
oBlockLevelSdt
.
Parent
)
{
this
.
RemoveSelection
();
var
oDocContent
=
oBlockLevelSdt
.
Parent
;
oDocContent
.
Update_ContentIndexing
();
var
nIndex
=
oBlockLevelSdt
.
GetIndex
();
oDocContent
.
Remove_FromContent
(
nIndex
,
1
);
oDocContent
.
MoveCursorToStartPos
();
}
};
CDocument
.
prototype
.
GetContentControl
=
function
(
Id
)
...
...
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