[DE mobile] Fixed init paragraph styles
This commit is contained in:
parent
6fba8f9e70
commit
908337a98f
|
@ -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": {
|
"Common": {
|
||||||
"ThemeColorPalette": {
|
"ThemeColorPalette": {
|
||||||
"textThemeColors": "Theme Colors",
|
"textThemeColors": "Theme Colors",
|
||||||
|
|
|
@ -150,10 +150,12 @@ class MainController extends Component {
|
||||||
|
|
||||||
_process_array(dep_scripts, promise_get_script)
|
_process_array(dep_scripts, promise_get_script)
|
||||||
.then ( result => {
|
.then ( result => {
|
||||||
|
window["flat_desine"] = true;
|
||||||
|
const {t} = this.props;
|
||||||
this.api = new Asc.asc_docs_api({
|
this.api = new Asc.asc_docs_api({
|
||||||
'id-view' : 'editor_sdk',
|
'id-view' : 'editor_sdk',
|
||||||
'mobile' : true,
|
'mobile' : true,
|
||||||
// 'translate': translate
|
'translate': t('Main.SDK', {returnObjects:true})
|
||||||
});
|
});
|
||||||
|
|
||||||
this.appOptions = {};
|
this.appOptions = {};
|
||||||
|
@ -249,6 +251,7 @@ class MainController extends Component {
|
||||||
});
|
});
|
||||||
|
|
||||||
//paragraph settings
|
//paragraph settings
|
||||||
|
this.api.asc_setParagraphStylesSizes(330, 38);
|
||||||
const storeParagraphSettings = this.props.storeParagraphSettings;
|
const storeParagraphSettings = this.props.storeParagraphSettings;
|
||||||
this.api.asc_registerCallback('asc_onInitEditorStyles', (styles) => {
|
this.api.asc_registerCallback('asc_onInitEditorStyles', (styles) => {
|
||||||
storeParagraphSettings.initEditorStyles(styles);
|
storeParagraphSettings.initEditorStyles(styles);
|
||||||
|
|
Loading…
Reference in a new issue