[DE] Open content control settings after it's creating
This commit is contained in:
parent
8494d1b752
commit
7016660299
|
@ -1356,6 +1356,7 @@ define([
|
|||
toolbarView.on('insertshape', _.bind(me.onInsertShape, me));
|
||||
toolbarView.on('inserttextart', _.bind(me.onInsertTextArt, me));
|
||||
toolbarView.on('insertchart', _.bind(me.onInsertChart, me));
|
||||
toolbarView.on('insertcontrol', _.bind(me.onInsertControl, me));
|
||||
}
|
||||
|
||||
var value = Common.localStorage.getItem('de-settings-unit');
|
||||
|
@ -2032,6 +2033,10 @@ define([
|
|||
this.getApplication().getController('RightMenu').onInsertTextArt();
|
||||
},
|
||||
|
||||
onInsertControl: function() {
|
||||
this.getApplication().getController('RightMenu').onInsertControl();
|
||||
},
|
||||
|
||||
unitsChanged: function(m) {
|
||||
var value = Common.localStorage.getItem("de-settings-unit");
|
||||
value = (value!==null) ? parseInt(value) : Common.Utils.Metric.getDefaultMetric();
|
||||
|
|
|
@ -261,6 +261,11 @@ define([
|
|||
this._settings[Common.Utils.documentSettingsType.TextArt].needShow = true;
|
||||
},
|
||||
|
||||
onInsertControl: function() {
|
||||
if (this._settings[Common.Utils.documentSettingsType.Form])
|
||||
this._settings[Common.Utils.documentSettingsType.Form].needShow = true;
|
||||
},
|
||||
|
||||
UpdateThemeColors: function() {
|
||||
this.rightmenu.paragraphSettings.UpdateThemeColors();
|
||||
this.rightmenu.tableSettings.UpdateThemeColors();
|
||||
|
|
|
@ -1835,6 +1835,7 @@ define([
|
|||
oPr, oFormPr;
|
||||
if (isnew) {
|
||||
oFormPr = new AscCommon.CSdtFormPr();
|
||||
this.toolbar.fireEvent('insertcontrol', this.toolbar);
|
||||
}
|
||||
if (item.value == 'plain' || item.value == 'rich')
|
||||
this.api.asc_AddContentControl((item.value=='plain') ? Asc.c_oAscSdtLevelType.Inline : Asc.c_oAscSdtLevelType.Block);
|
||||
|
|
Loading…
Reference in a new issue