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
f1a25f16
Commit
f1a25f16
authored
Feb 21, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for "mso-list"
parent
94bfa264
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
common/wordcopypaste.js
common/wordcopypaste.js
+23
-3
No files found.
common/wordcopypaste.js
View file @
f1a25f16
...
...
@@ -1888,7 +1888,7 @@ function PasteProcessor(api, bUploadImage, bUploadFonts, bNested, pasteInExcel)
this
.
MsoStyles
=
{
"
mso-style-type
"
:
1
,
"
mso-pagination
"
:
1
,
"
mso-line-height-rule
"
:
1
,
"
mso-style-textfill-fill-color
"
:
1
,
"
mso-tab-count
"
:
1
,
"
tab-stops
"
:
1
,
"
list-style-type
"
:
1
,
"
mso-special-character
"
:
1
,
"
mso-column-break-before
"
:
1
,
"
mso-break-type
"
:
1
,
"
mso-padding-alt
"
:
1
,
"
mso-border-insidev
"
:
1
,
"
mso-border-insideh
"
:
1
,
"
mso-row-margin-left
"
:
1
,
"
mso-row-margin-right
"
:
1
,
"
mso-cellspacing
"
:
1
,
"
mso-border-alt
"
:
1
,
"
mso-border-left-alt
"
:
1
,
"
mso-border-top-alt
"
:
1
,
"
mso-border-right-alt
"
:
1
,
"
mso-border-bottom-alt
"
:
1
,
"
mso-border-between
"
:
1
};
"
mso-border-left-alt
"
:
1
,
"
mso-border-top-alt
"
:
1
,
"
mso-border-right-alt
"
:
1
,
"
mso-border-bottom-alt
"
:
1
,
"
mso-border-between
"
:
1
,
"
mso-list
"
:
1
};
this
.
oBorderCache
=
{};
}
PasteProcessor
.
prototype
=
...
...
@@ -4952,7 +4952,20 @@ PasteProcessor.prototype =
}
}
if
(
this
.
pasteInExcel
!==
true
&&
Para
.
bFromDocument
===
true
)
Para
.
Numbering_Add
(
NumId
,
0
);
{
var
lvl
=
0
;
if
(
pNoHtmlPr
[
'
mso-list
'
])
{
//TODO сделать полную поддержку mso-list при копировании списков из mso списков
var
startIndex
;
if
(
-
1
!=
(
startIndex
=
pNoHtmlPr
[
'
mso-list
'
].
indexOf
(
"
level
"
)))
{
//lvl = parseInt(pNoHtmlPr['mso-list'].substr(startIndex + 5, 1)) - 1;
}
}
Para
.
Numbering_Add
(
NumId
,
lvl
);
}
}
else
{
...
...
@@ -6046,7 +6059,14 @@ PasteProcessor.prototype =
pPr
.
numType
=
numbering_presentationnumfrmt_ArabicPeriod
;
}
}
else
if
(
pPr
[
"
mso-list
"
])
{
if
(
"
p
"
==
sNodeName
)
{
pPr
.
bNum
=
true
;
}
}
if
(
"
img
"
==
sNodeName
&&
this
.
pasteInExcel
!==
true
)
{
if
(
PasteElementsId
.
g_bIsDocumentCopyPaste
)
...
...
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