From efa1890e6cc4c1e36d2eac662677e98a835b2881 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 22 Apr 2024 17:06:14 +0300 Subject: [PATCH 1/3] FIx Bug 67601 --- apps/pdfeditor/main/app/view/FileMenuPanels.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/pdfeditor/main/app/view/FileMenuPanels.js b/apps/pdfeditor/main/app/view/FileMenuPanels.js index 9166051981..e7db50772b 100644 --- a/apps/pdfeditor/main/app/view/FileMenuPanels.js +++ b/apps/pdfeditor/main/app/view/FileMenuPanels.js @@ -2503,6 +2503,7 @@ define([ parentEl: $markup.findById('#print-prev-page'), cls: 'btn-prev-page', iconCls: 'arrow', + scaling: false, dataHint: '2', dataHintDirection: 'top' }); @@ -2511,6 +2512,7 @@ define([ parentEl: $markup.findById('#print-next-page'), cls: 'btn-next-page', iconCls: 'arrow', + scaling: false, dataHint: '2', dataHintDirection: 'top' }); From 6cb833bfd77c62057a95c96ede6572b1e8b31e0a Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 22 Apr 2024 17:16:20 +0300 Subject: [PATCH 2/3] Fix Bug 64185 --- apps/common/main/lib/component/ColorButton.js | 4 ++-- apps/pdfeditor/main/app/view/Toolbar.js | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/common/main/lib/component/ColorButton.js b/apps/common/main/lib/component/ColorButton.js index 998a0d8ba6..a8bdc7e230 100644 --- a/apps/common/main/lib/component/ColorButton.js +++ b/apps/common/main/lib/component/ColorButton.js @@ -42,11 +42,11 @@ define([ render: function(parentEl) { Common.UI.Button.prototype.render.call(this, parentEl); - if (/huge/.test(this.options.cls) && this.options.split === true ) { + if (/huge/.test(this.options.cls) && this.options.split === true && !this.options.hideColorLine) { var btnEl = $('button', this.cmpEl), btnMenuEl = $(btnEl[1]); btnMenuEl && btnMenuEl.append( $('
')); - } else + } else if (!this.options.hideColorLine) $('button:first-child', this.cmpEl).append( $('
')); this.colorEl = this.cmpEl.find('.btn-color-value-line'); diff --git a/apps/pdfeditor/main/app/view/Toolbar.js b/apps/pdfeditor/main/app/view/Toolbar.js index 53ad7fa4d4..c64ce1c57c 100644 --- a/apps/pdfeditor/main/app/view/Toolbar.js +++ b/apps/pdfeditor/main/app/view/Toolbar.js @@ -818,10 +818,11 @@ define([ allowDepress: true, split: true, menu: true, + hideColorLine: true, dataHint: '1', dataHintDirection: 'bottom', dataHintOffset: '0, -16', - penOptions: {color: '000000'}, + penOptions: {color: 'D43230'}, type: AscPDF.ANNOTATIONS_TYPES.Strikeout }); @@ -834,10 +835,11 @@ define([ allowDepress: true, split: true, menu: true, + hideColorLine: true, dataHint: '1', dataHintDirection: 'bottom', dataHintOffset: '0, -16', - penOptions: {color: '000000'}, + penOptions: {color: '3D8A44'}, type: AscPDF.ANNOTATIONS_TYPES.Underline }); From 1e16c5c9c595d390181613d867ea58f4f920f62a Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 22 Apr 2024 19:42:33 +0300 Subject: [PATCH 3/3] [DE][DE embed] Fix Bug 67561: open docxf/oform as pdf-form --- apps/api/documents/api.js | 11 +++++--- apps/documenteditor/embed/index.html | 3 +++ apps/documenteditor/embed/index.html.deploy | 3 +++ apps/documenteditor/embed/index_loader.html | 3 +++ .../embed/index_loader.html.deploy | 3 +++ .../embed/js/ApplicationController.js | 27 +++++++++++++++++-- apps/documenteditor/embed/locale/en.json | 2 ++ .../main/app/controller/Main.js | 4 +-- .../main/app/controller/Toolbar.js | 2 +- 9 files changed, 48 insertions(+), 10 deletions(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index c84bf703a6..842ac755be 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -1076,15 +1076,18 @@ if (config.frameEditorId) params += "&frameEditorId=" + config.frameEditorId; - var type = config.document ? /^(?:(pdf))$/.exec(config.document.fileType) : null; - if (!(type && typeof type[1] === 'string') && (config.editorConfig && config.editorConfig.mode == 'view' || + var type = config.document ? /^(?:(pdf)|(oform|docxf))$/.exec(config.document.fileType) : null, + isPdf = type && typeof type[1] === 'string', + oldForm = type && typeof type[2] === 'string'; + + if (!(isPdf || oldForm) && (config.editorConfig && config.editorConfig.mode == 'view' || config.document && config.document.permissions && (config.document.permissions.edit === false && !config.document.permissions.review ))) params += "&mode=view"; - if (type && typeof type[1] === 'string' && (config.document && config.document.permissions && config.document.permissions.edit === false || config.editorConfig && config.editorConfig.mode == 'view')) + if ((isPdf || oldForm) && (config.document && config.document.permissions && config.document.permissions.edit === false || config.editorConfig && config.editorConfig.mode == 'view')) params += "&mode=fillforms"; if (config.document) { - config.document.isForm = (type && typeof type[1] === 'string') ? config.document.isForm : false; + config.document.isForm = isPdf ? config.document.isForm : oldForm; (config.document.isForm===true || config.document.isForm===false) && (params += "&isForm=" + config.document.isForm); } diff --git a/apps/documenteditor/embed/index.html b/apps/documenteditor/embed/index.html index 8325c4c732..edaeadc6cd 100644 --- a/apps/documenteditor/embed/index.html +++ b/apps/documenteditor/embed/index.html @@ -251,6 +251,9 @@