diff --git a/packages/core/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts b/packages/core/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts index 5a42fe7483..274d45ee40 100644 --- a/packages/core/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +++ b/packages/core/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts @@ -206,15 +206,14 @@ export class FormattingToolbarView implements PluginView { // individually in each button. const newReferencePos = this.getSelectionBoundingBox(); - // Workaround to ensure the correct reference position when rendering + // Workaround to ensure the correct reference position when rendering // React components. Without this, e.g. updating styles on React inline - // content causes the formatting toolbar to be in the wrong place. We - // know the component has not yet rendered if the reference position has + // content causes the formatting toolbar to be in the wrong place. We + // know the component has not yet rendered if the reference position has // zero dimensions. if ( newReferencePos.x === 0 || newReferencePos.y === 0 || - newReferencePos.width === 0 || newReferencePos.height === 0 ) { // Updates the reference position again following the render.