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
817bf096
Commit
817bf096
authored
Jul 17, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6792d8c3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
common/apiBase.js
common/apiBase.js
+19
-6
slide/api.js
slide/api.js
+0
-2
word/api.js
word/api.js
+0
-1
No files found.
common/apiBase.js
View file @
817bf096
...
...
@@ -1231,14 +1231,27 @@
if
(
this
.
editorId
==
c_oEditorId
.
Word
||
this
.
editorId
==
c_oEditorId
.
Presentation
)
{
// get default props (method!!!)
if
(
t
his
.
LastT
extPr
)
var
textPr
=
this
.
get_TextProps
();
if
(
textPr
)
{
if
(
undefined
!==
t
his
.
Last
TextPr
.
FontSize
)
_elem
.
style
.
fontSize
=
t
his
.
Last
TextPr
.
FontSize
+
"
pt
"
;
if
(
undefined
!==
t
extPr
.
TextPr
.
FontSize
)
_elem
.
style
.
fontSize
=
t
extPr
.
TextPr
.
FontSize
+
"
pt
"
;
_elem
.
style
.
fontWeight
=
(
true
===
this
.
LastTextPr
.
Bold
)
?
"
bold
"
:
"
normal
"
;
_elem
.
style
.
fontStyle
=
(
true
===
this
.
LastTextPr
.
Italic
)
?
"
italic
"
:
"
normal
"
;
_elem
.
style
.
fontWeight
=
(
true
===
textPr
.
TextPr
.
Bold
)
?
"
bold
"
:
"
normal
"
;
_elem
.
style
.
fontStyle
=
(
true
===
textPr
.
TextPr
.
Italic
)
?
"
italic
"
:
"
normal
"
;
}
}
else
if
(
this
.
editorId
==
c_oEditorId
.
Spreadsheet
)
{
var
props
=
this
.
asc_getCellInfo
();
if
(
props
&&
props
.
font
)
{
if
(
undefined
!=
props
.
font
.
size
)
_elem
.
style
.
fontSize
=
props
.
font
.
size
+
"
pt
"
;
_elem
.
style
.
fontWeight
=
(
true
===
props
.
font
.
bold
)
?
"
bold
"
:
"
normal
"
;
_elem
.
style
.
fontStyle
=
(
true
===
props
.
font
.
italic
)
?
"
italic
"
:
"
normal
"
;
}
}
...
...
slide/api.js
View file @
817bf096
...
...
@@ -1536,8 +1536,6 @@ background-repeat: no-repeat;\
asc_docs_api
.
prototype
.
UpdateTextPr
=
function
(
TextPr
)
{
this
.
LastTextPr
=
TextPr
;
if
(
"
undefined
"
!=
typeof
(
TextPr
))
{
if
(
TextPr
.
Color
!==
undefined
)
...
...
word/api.js
View file @
817bf096
...
...
@@ -1700,7 +1700,6 @@ background-repeat: no-repeat;\
asc_docs_api
.
prototype
.
UpdateTextPr
=
function
(
TextPr
)
{
this
.
LastTextPr
=
TextPr
;
if
(
"
undefined
"
!=
typeof
(
TextPr
))
{
this
.
sync_BoldCallBack
(
TextPr
.
Bold
);
...
...
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