[DE mobile] Fixed init paragraph styles

This commit is contained in:
JuliaSvinareva 2021-01-19 19:32:51 +03:00
parent 6fba8f9e70
commit 908337a98f
2 changed files with 32 additions and 1 deletions

View file

@ -1,4 +1,32 @@
{
"Main" : {
"SDK": {
"Series": "Series",
"Diagram Title": "Chart Title",
"X Axis": "X Axis XAS",
"Y Axis": "Y Axis",
"Your text here": "Your text here",
"Footer": "Footer",
"Header": "Header",
"Normal": "Normal",
"No Spacing": "No Spacing",
"Heading 1": "Heading 1",
"Heading 2": "Heading 2",
"Heading 3": "Heading 3",
"Heading 4": "Heading 4",
"Heading 5": "Heading 5",
"Heading 6": "Heading 6",
"Heading 7": "Heading 7",
"Heading 8": "Heading 8",
"Heading 9": "Heading 9",
"Title": "Title",
"Subtitle": "Subtitle",
"Quote": "Quote",
"Intense Quote": "Intense Quote",
"List Paragraph": "List Paragraph",
"footnote text": "Footnote Text"
}
},
"Common": {
"ThemeColorPalette": {
"textThemeColors": "Theme Colors",

View file

@ -150,10 +150,12 @@ class MainController extends Component {
_process_array(dep_scripts, promise_get_script)
.then ( result => {
window["flat_desine"] = true;
const {t} = this.props;
this.api = new Asc.asc_docs_api({
'id-view' : 'editor_sdk',
'mobile' : true,
// 'translate': translate
'translate': t('Main.SDK', {returnObjects:true})
});
this.appOptions = {};
@ -249,6 +251,7 @@ class MainController extends Component {
});
//paragraph settings
this.api.asc_setParagraphStylesSizes(330, 38);
const storeParagraphSettings = this.props.storeParagraphSettings;
this.api.asc_registerCallback('asc_onInitEditorStyles', (styles) => {
storeParagraphSettings.initEditorStyles(styles);