Skip to content

Commit

Permalink
Merge pull request #246 from monsieurbiz/fix/allow-paste-from-another…
Browse files Browse the repository at this point in the history
…-edit-page

fix(paste): Allow paste locally stored elements between different pages
  • Loading branch information
jacquesbh authored Oct 23, 2024
2 parents 63ad8a1 + c9a2970 commit 836a40d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ global.MonsieurBizRichEditorManager = class {
action.removeAttribute('disabled');
}.bind(this));
}.bind(this));

if (window.localStorage.getItem('monsieurBizRichEditorElementsClipboard') !== null) {
this.container.querySelectorAll('.js-uie-tools-paste-all').forEach(function (action) {
action.removeAttribute('disabled');
}.bind(this));
}
}

initUiToolsInterface() {
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/js/rich-editor-highlight.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Resources/public/js/rich-editor.js

Large diffs are not rendered by default.

0 comments on commit 836a40d

Please sign in to comment.