Skip to content

Commit

Permalink
fix: 修復 summernote-custom-style, summernote-imagemap 未正確工具列樣式
Browse files Browse the repository at this point in the history
dialog 插入在 body 會導致無法正常套用到 note-toolbar 以下的樣式,需在外層補上 note-editor

Signed-off-by: wyttime04 <vanessa80332@gmail.com>
  • Loading branch information
wyttime04 committed Jan 26, 2024
1 parent 73ec9a8 commit 69bcc93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/custom/summernote-custom-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
],
['<div class="summernote-customStyle-divider"></div>'],
[
'<div class="summernote-customStyle-editor">',
'<div class="summernote-customStyle-editor note-editor">',

'<div class="form-inline px-3 py-2">',
'<div class="note-form-group form-group">',
Expand Down
1 change: 1 addition & 0 deletions src/plugin/custom/summernote-imagemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
'</div>',
].join(''),
}).render().appendTo($container);
this.$dialog.find('.modal-body').addClass('note-editor')
this.$dialog.find('.modal-dialog').addClass('modal-xl')
}
this.destroy = function () {
Expand Down

0 comments on commit 69bcc93

Please sign in to comment.