From 3511b0fb425ae408994bb1a87094336ee033735b Mon Sep 17 00:00:00 2001 From: jmleroux Date: Wed, 24 Jul 2019 10:38:47 +0200 Subject: [PATCH] PIM-8582: Fix wysiwyg edit link not visible. --- CHANGELOG-3.0.md | 4 ++++ .../Resources/public/js/product/field/wysiwyg-field.js | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-3.0.md b/CHANGELOG-3.0.md index 24b382243f2d..24c80131277a 100644 --- a/CHANGELOG-3.0.md +++ b/CHANGELOG-3.0.md @@ -1,5 +1,9 @@ # 3.0.x +## Bug fixes + +- PIM-8582: Fix wysiwyg edit link not visible + # 3.0.33 (2019-07-24) ## Bug fixes diff --git a/src/Akeneo/Platform/Bundle/UIBundle/Resources/public/js/product/field/wysiwyg-field.js b/src/Akeneo/Platform/Bundle/UIBundle/Resources/public/js/product/field/wysiwyg-field.js index dbd630edf3e6..4f49ad0d1e30 100644 --- a/src/Akeneo/Platform/Bundle/UIBundle/Resources/public/js/product/field/wysiwyg-field.js +++ b/src/Akeneo/Platform/Bundle/UIBundle/Resources/public/js/product/field/wysiwyg-field.js @@ -25,7 +25,7 @@ define( fieldTemplate: _.template(fieldTemplate), events: { 'change .field-input:first textarea:first': 'updateModel', - 'click .note-insert': 'moveModalBackdrop' + 'click .note-insert': 'setStyleForLinkModal' }, /** @@ -40,7 +40,6 @@ define( */ postRender: function () { this.$('textarea').summernote({ - onToolbarClick: this.setStyleForLinkModal, disableResizeEditor: true, height: 200, iconPrefix: 'icon-', @@ -107,10 +106,13 @@ define( * @param jqueryEvent */ setStyleForLinkModal: function (jqueryEvent) { + this.moveModalBackdrop(); + const source = $(jqueryEvent.originalEvent.path[0]); if ( source.hasClass('icon-link') + || source.hasClass('icon-edit') || (source.hasClass('btn-sm') && ('showLinkDialog' === source.data('event'))) ) { const editor = source.closest('.note-editor');