From dfff1fa758d436bd5ac969715d1f7f212cfadb2b Mon Sep 17 00:00:00 2001 From: mostafaznv Date: Sat, 31 Aug 2024 00:28:19 +0330 Subject: [PATCH] fix: position the dialog of the element-id-attribute based on its own parent #133 --- .../element-attribute/src/add-attribute-to-element-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/ckeditor/plugins/element-attribute/src/add-attribute-to-element-ui.js b/resources/js/ckeditor/plugins/element-attribute/src/add-attribute-to-element-ui.js index 0c20cbf..b9463de 100644 --- a/resources/js/ckeditor/plugins/element-attribute/src/add-attribute-to-element-ui.js +++ b/resources/js/ckeditor/plugins/element-attribute/src/add-attribute-to-element-ui.js @@ -106,7 +106,7 @@ class ElementAddAttributesUI extends Plugin { if (!this._isInBalloon) { const defaultPositions = BalloonPanelView.defaultPositions; - const target = document.querySelector('.element-add-attributes-btn'); + const target = editor.ui.view.element.querySelector('.element-add-attributes-btn'); this._balloon.add({ view: this._form,