Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Block missing after changing the default programming language #1369

Open
fedenuche opened this issue Jan 14, 2025 · 0 comments
Open

Code Block missing after changing the default programming language #1369

fedenuche opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@fedenuche
Copy link

I'm trying to change the default programming language in the Code Block from Javascript to Python. So I'm using the customizeCodeBlock function, but when I use that, the block disappears from the slash menu.

import {
  BlockNoteSchema,
  defaultBlockSpecs,
  customizeCodeBlock,
} from '@blocknote/core';

const schema = BlockNoteSchema.create({
  blockSpecs: {
    ...defaultBlockSpecs,
    codeBlock: customizeCodeBlock({
      defaultLanguage: 'python',
    }),
  },
});

Misc

  • Node version: 20.18.0
  • React version: 18.3.1
  • Package manager: npm
  • Browser: Firefox and Chrome
@fedenuche fedenuche added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant