Skip to content

Commit

Permalink
PIM-8582: Fix wysiwyg edit link not visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmleroux committed Jul 24, 2019
1 parent eacac62 commit 3511b0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG-3.0.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ define(
fieldTemplate: _.template(fieldTemplate),
events: {
'change .field-input:first textarea:first': 'updateModel',
'click .note-insert': 'moveModalBackdrop'
'click .note-insert': 'setStyleForLinkModal'
},

/**
Expand All @@ -40,7 +40,6 @@ define(
*/
postRender: function () {
this.$('textarea').summernote({
onToolbarClick: this.setStyleForLinkModal,
disableResizeEditor: true,
height: 200,
iconPrefix: 'icon-',
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 3511b0f

Please sign in to comment.