Skip to content

Initial load content is not working #2529

@Sahil-Gupta584

Description

@Sahil-Gupta584

What’s broken?

Issue:
https://github.com/user-attachments/assets/7b860392-7d15-4957-bef2-d6935f808327

My code:
https://gist.github.com/Sahil-Gupta584/9f2518a4c9d1444969f45bcf9d2eeb57

What did you expect to happen?

On first load the the value of editorValue is truthy so it should append it as default value.

Also its better if we can have controlled input, currently we cant pass editor value directly to editor instance only onchnage handler is given. if we can pass value/content also to editor instance then my issue can be resolved

Steps to reproduce

No response

BlockNote version

No response

Environment

No response

Additional context

No response

Contribution

  • I'd be interested in contributing a fix for this issue

Sponsor

  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue has not yet been reviewed or classified by maintainers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions