diff --git a/src/components/Editor/FloatingButtons.vue b/src/components/Editor/FloatingButtons.vue index 608113f2def..2abc287e851 100644 --- a/src/components/Editor/FloatingButtons.vue +++ b/src/components/Editor/FloatingButtons.vue @@ -64,7 +64,7 @@ export default { computed: { isHeadingNode() { - return this.node?.type === this.editor.schema.nodes.heading + return this.node?.type.name === 'heading' }, }, @@ -101,7 +101,7 @@ export default { display: flex; &.heading { - margin-right: 16px; + left: calc(-34px - 14px) !important; } }