Skip to content

Commit

Permalink
fix(paste): Allow paste locally stored elements between different pages
Browse files Browse the repository at this point in the history
  • Loading branch information
welcoMattic committed Oct 22, 2024
1 parent 63ad8a1 commit c9a2970
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 c9a2970

Please sign in to comment.