Skip to content

"editor.sideMenu" is undefined in @blocknote/core (Vanilla JS Setup Guide is broken) #2441

@vadolasi

Description

@vadolasi

What’s broken?

I am trying to implement BlockNote in a Svelte project (using the Vanilla JS approach since there is no official Svelte wrapper). I followed the official "Getting Started - With Vanilla JS" documentation.

The documentation explicitly instructs to access editor.sideMenu to create custom UI elements:

// From the docs:
editor.sideMenu.onUpdate((sideMenuState) => {
   // ... implementation
});

However, in the latest version of @blocknote/core, the sideMenu property (and all other UI elements) does not exist on the BlockNoteEditor instance.

What did you expect to happen?

.

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions