Comments (2)
If you can't add a CSS rule, you can add the following to your useCreateBlockNote
options:
const editor = useCreateBlockNote({
domAttributes: {
editor: {
style: "padding-inline: 0px;",
},
},
});
If you can use CSS though, you just need to make sure the selector you use is more specific than the one which sets the padding (which is just .bn-editor
), so you can do something like this:
.bn-container > .bn-editor {
padding-inline: 0px;
}
from blocknote.
ah yes, thank you sooo much, this works.
from blocknote.
Related Issues (20)
- Need Help: Converting JSON to HTML in Blocknote HOT 2
- Custom Formatting Toolbar input loss focus HOT 3
- document is not defined HOT 1
- Getting errors while using blocknote/react HOT 1
- Class 'BlockNoteTipTapEditor' incorrectly extends base class 'Editor'
- When pasting link as first item everything after it gets added
- Formatting Toolbar is displayed after block is dragged
- Emoji picker throwing type error in next.js HOT 2
- @emoji-mart/data increases bundle size significantly (400KB)
- Block drag to top of document doesn't work HOT 3
- Format toolbar goes offscreen on mobile
- Add Word/Character Counter and Limitation
- Clean up inline components in examples
- Investigate server-util package usage for Next.js SSR and other environments
- Is there any way to extend a default block?
- Suggestion Menu is not positioned properly when custom items or custom components are specified
- Unable to import from BlockNote packages when using `NodeNext` for `moduleResolution`. HOT 2
- dev-scripts path issue on Windows HOT 2
- 调用editor.updateBlock()时,光标会定位到断尾 HOT 1
- 调用editor.updateBlock()时,光标会定位到段尾
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.