Skip to content

Commit 8f8e542

Browse files
AC-397: TinyMCE 5 modal is not center over toolbar
- fix static tests
1 parent 7dea8e2 commit 8f8e542

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/wysiwyg/tinymce.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/wysiwyg/tinymce.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export default class Wysiwyg implements WysiwygInterface {
197197
}
198198
const dialogContainer = document.querySelector(`#${this.elementId} ~ .tox-tinymce-aux`);
199199
if (!!dialogContainer) {
200-
dialogContainer.setAttribute('data-editor-aux', this.elementId);
200+
dialogContainer.setAttribute("data-editor-aux", this.elementId);
201201
document.body.appendChild(dialogContainer);
202202
}
203203
});
@@ -227,7 +227,7 @@ export default class Wysiwyg implements WysiwygInterface {
227227

228228
const dialogContainer = document.querySelector(`[data-editor-aux=${this.elementId}]`);
229229
if (!!dialogContainer) {
230-
dialogContainer.removeAttribute('data-editor-aux');
230+
dialogContainer.removeAttribute("data-editor-aux");
231231
document.querySelector(`#${this.elementId}`).parentNode.appendChild(dialogContainer);
232232
}
233233

0 commit comments

Comments
 (0)