Skip to content

Commit 836a40d

Browse files
authored
Merge pull request #246 from monsieurbiz/fix/allow-paste-from-another-edit-page
fix(paste): Allow paste locally stored elements between different pages
2 parents 63ad8a1 + c9a2970 commit 836a40d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

assets/js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ global.MonsieurBizRichEditorManager = class {
236236
action.removeAttribute('disabled');
237237
}.bind(this));
238238
}.bind(this));
239+
240+
if (window.localStorage.getItem('monsieurBizRichEditorElementsClipboard') !== null) {
241+
this.container.querySelectorAll('.js-uie-tools-paste-all').forEach(function (action) {
242+
action.removeAttribute('disabled');
243+
}.bind(this));
244+
}
239245
}
240246

241247
initUiToolsInterface() {

src/Resources/public/js/rich-editor-highlight.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Resources/public/js/rich-editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)