Giter Site home page Giter Site logo

Comments (10)

siddharthbulia avatar siddharthbulia commented on June 14, 2024 3

@i-am-chitti and @quuu

I have been to fix it by installing @mantine/[email protected] and by adding import "@mantine/core/style.css at the start of my App.jsx
It seems like this file should have automatically been imported but is not happening.

import "@blocknote/core/fonts/inter.css";
import { BlockNoteView, useCreateBlockNote } from "@blocknote/react";
import "@blocknote/react/style.css";
import "@mantine/core/style.css"

export default function App() {
  // Creates a new editor instance.
  const editor = useCreateBlockNote();

  // Renders the editor instance using a React component.
  return <BlockNoteView editor={editor} />;
}

from blocknote.

kyen99 avatar kyen99 commented on June 14, 2024 3

In order to get this to work with latest @blocknote I had to do what @siddharthbulia suggested above, but I had to install @mantine/[email protected] instead of 7.5.0 (which gave me dependency warnings and didn't work).

from blocknote.

YousefED avatar YousefED commented on June 14, 2024 2

Thanks for the reports. This seems like a recent regression, we'll fix it asap!

from blocknote.

quuu avatar quuu commented on June 14, 2024

Am also hitting this issue on a fresh repo

from blocknote.

quuu avatar quuu commented on June 14, 2024

The stackblitz linked in the docs also is directly repro-able for this issue

CleanShot 2024-03-29 at 17 19 22@2x

from blocknote.

siddharthbulia avatar siddharthbulia commented on June 14, 2024

Same issue here. It is not working in regular project as well.

from blocknote.

DaviRJ avatar DaviRJ commented on June 14, 2024

Same problem here. Nextjs 14.1. @siddharthbulia fixed the Blocknote layout but broke up all styles of my app 😅 I'm using Tailwind and shadcn.

Bellow some images to exemplify.

Blocknote without manually import:

image

image

Blocknote manually importing @mantime/core/styles.css:

image

from blocknote.

shahyan3 avatar shahyan3 commented on June 14, 2024

@YousefED Thanks. Do post an update when fixed please.

from blocknote.

SPCODER-DEV avatar SPCODER-DEV commented on June 14, 2024

it works like this so far

Adding "@mantine/core/styles.css" and also importing "@/app/globals.css"

"@mantine/core": "^7.7.1"

from blocknote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.