Skip to content

Adding H1 right after page header breaks layout style #7625

@gustavo-bordin

Description

@gustavo-bordin

Affected Packages

extension-pages

Version(s)

0.18.0

Description of the Bug

When you are in the first row right after the page header, if you select Heading 1 style, the cursor goes to a wrong position, it is reproducible even in the docs.

  1. Go to this page -> https://tiptap.dev/docs/pages/getting-started/overview
  2. Clear all the page contents
  3. Select the very first line (below the header), but dont type anything
  4. Click H1 button
  5. Bug happens, cursor goes to the right of the page outside the page
Image

Browser Used

Chrome

Code Example (Preferred)

No response

Expected Behavior

When i select any formatting style the cursor should stay at its position

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

Labels

ProThe issue or pull request is related to the pro packages of Tiptap.

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions