diff --git a/src/bundle/Resources/public/js/OnlineEditor/toolbars/config/base.js b/src/bundle/Resources/public/js/OnlineEditor/toolbars/config/base.js index d2966684..86220bbd 100644 --- a/src/bundle/Resources/public/js/OnlineEditor/toolbars/config/base.js +++ b/src/bundle/Resources/public/js/OnlineEditor/toolbars/config/base.js @@ -42,7 +42,7 @@ export default class EzConfigBase extends EzConfigButtonsBase { const scrollLeft = parseInt(block.$.scrollLeft, 10); const blockLeftMargin = block.$.offsetLeft; const blockWidth = block.$.offsetWidth; - const toolbarWidth = document.querySelector('.ae-toolbar-floating').offsetWidth; + const toolbarWidth = document.querySelector('.ae-toolbar-styles').offsetWidth; const maxLeft = blockWidth - toolbarWidth; range.selectNodeContents(positionReference.$);