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,