mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 01:53:55 +08:00
[DE] Add settings for smart paragraph selection
This commit is contained in:
@ -515,6 +515,10 @@ define([
|
||||
value = parseInt(Common.localStorage.getItem("de-settings-paste-button"));
|
||||
Common.Utils.InternalSettings.set("de-settings-paste-button", value);
|
||||
this.api.asc_setVisiblePasteButton(!!value);
|
||||
|
||||
value = Common.localStorage.getBool("de-settings-smart-selection");
|
||||
Common.Utils.InternalSettings.set("de-settings-smart-selection", value);
|
||||
this.api.asc_putSmartParagraphSelection(value);
|
||||
}
|
||||
|
||||
this.api.put_ShowSnapLines(Common.Utils.InternalSettings.get("de-settings-showsnaplines"));
|
||||
|
||||
@ -1345,6 +1345,10 @@ define([
|
||||
Common.Utils.InternalSettings.set("de-settings-paste-button", parseInt(value));
|
||||
me.api.asc_setVisiblePasteButton(!!parseInt(value));
|
||||
|
||||
value = Common.localStorage.getBool("de-settings-smart-selection");
|
||||
Common.Utils.InternalSettings.set("de-settings-smart-selection", value);
|
||||
me.api.asc_putSmartParagraphSelection(value);
|
||||
|
||||
me.loadAutoCorrectSettings();
|
||||
|
||||
if (me.needToUpdateVersion)
|
||||
|
||||
@ -319,6 +319,9 @@ define([
|
||||
'<tr class="edit">',
|
||||
'<td colspan="2"><div id="fms-chb-paste-settings"></div></td>',
|
||||
'</tr>',
|
||||
'<tr class="edit">',
|
||||
'<td colspan="2"><div id="fms-chb-smart-selection"></div></td>',
|
||||
'</tr>',
|
||||
'<tr class="edit">',
|
||||
'<td colspan="2"><span id="fms-chb-compatible"></span></td>',
|
||||
'</tr>',
|
||||
@ -524,6 +527,14 @@ define([
|
||||
dataHintOffset: 'small'
|
||||
});
|
||||
|
||||
this.chSmartSelection = new Common.UI.CheckBox({
|
||||
el: $markup.findById('#fms-chb-smart-selection'),
|
||||
labelText: this.textSmartSelection,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
});
|
||||
|
||||
this.chAutosave = new Common.UI.CheckBox({
|
||||
el: $markup.findById('#fms-chb-autosave'),
|
||||
labelText: this.textAutoSave,
|
||||
@ -926,6 +937,7 @@ define([
|
||||
|
||||
this.chPaste.setValue(Common.Utils.InternalSettings.get("de-settings-paste-button"));
|
||||
this.chQuickPrint.setValue(Common.Utils.InternalSettings.get("de-settings-quick-print-button"));
|
||||
this.chSmartSelection.setValue(Common.Utils.InternalSettings.get("de-settings-smart-selection"));
|
||||
|
||||
var data = [];
|
||||
for (var t in Common.UI.Themes.map()) {
|
||||
@ -996,6 +1008,7 @@ define([
|
||||
}
|
||||
|
||||
Common.localStorage.setItem("de-settings-paste-button", this.chPaste.isChecked() ? 1 : 0);
|
||||
Common.localStorage.setItem("de-settings-smart-selection", this.chSmartSelection.isChecked() ? 1 : 0);
|
||||
var isRtlChanged = this.chRTL.$el.is(':visible') && Common.localStorage.getBool("ui-rtl") !== this.chRTL.isChecked();
|
||||
Common.localStorage.setBool("ui-rtl", this.chRTL.isChecked());
|
||||
Common.localStorage.setBool("de-settings-quick-print-button", this.chQuickPrint.isChecked());
|
||||
@ -1113,7 +1126,8 @@ define([
|
||||
txtQuickPrintTip: 'The document will be printed on the last selected or default printer',
|
||||
txtWorkspaceSettingChange: 'Workspace setting (RTL interface) change',
|
||||
txtRestartEditor: 'Please restart document editor so that your workspace settings can take effect',
|
||||
txtLastUsed: 'Last used'
|
||||
txtLastUsed: 'Last used',
|
||||
textSmartSelection: 'Use smart paragraph selection'
|
||||
}, DE.Views.FileMenuPanels.Settings || {}));
|
||||
|
||||
DE.Views.FileMenuPanels.CreateNew = Common.UI.BaseView.extend(_.extend({
|
||||
|
||||
@ -2140,6 +2140,7 @@
|
||||
"DE.Views.FileMenuPanels.Settings.txtWarnMacrosDesc": "Disable all macros with a notification",
|
||||
"DE.Views.FileMenuPanels.Settings.txtWin": "as Windows",
|
||||
"DE.Views.FileMenuPanels.Settings.txtWorkspace": "Workspace",
|
||||
"DE.Views.FileMenuPanels.Settings.textSmartSelection": "Use smart paragraph selection",
|
||||
"DE.Views.FileMenuPanels.ViewSaveAs.textDownloadAs": "Download as",
|
||||
"DE.Views.FileMenuPanels.ViewSaveCopy.textSaveCopyAs": "Save Copy as",
|
||||
"DE.Views.FormSettings.textAlways": "Always",
|
||||
|
||||
Reference in New Issue
Block a user