Comments (10)
@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.
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.
Thanks for the reports. This seems like a recent regression, we'll fix it asap!
from blocknote.
Am also hitting this issue on a fresh repo
from blocknote.
The stackblitz linked in the docs also is directly repro-able for this issue
from blocknote.
Same issue here. It is not working in regular project as well.
from blocknote.
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:
Blocknote manually importing @mantime/core/styles.css:
from blocknote.
@YousefED Thanks. Do post an update when fixed please.
from blocknote.
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)
- :sparkles: Editor API for AI Text Suggestion HOT 2
- Unable to have "focus stealing" components in Suggestion menu and formatting toolbar HOT 4
- Table doesn't save columns width after refresh
- Slash menu scrolls the page to top when triggered first time after loading document.
- Multiple editor instances cause duplicates on drag&drop
- Bug: Cannot add space at the end of a custom block's content HOT 3
- Placeholder customization, to add a new text or data HOT 1
- About the best rerendering strategy HOT 1
- Passing a new theme object causes editor to lose focus HOT 2
- Add custom comment data to my editor block
- Question: How to add/overwrite keyboard shortcuts? HOT 1
- Setting Text Cursor Position
- video embedding feature HOT 1
- Possible to create forms using BlockNote Editor Custom Blocks? HOT 1
- Ability to drag blocks next to each other to create columns HOT 1
- Trying to export the HTML markup with the CSS styles of blocks HOT 2
- Programmable Visibility for Format Toolbar HOT 2
- “Block Side Menu" CSS breaks down. bug HOT 3
- default style disabled HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blocknote.