Comments (5)
Hi @doorkey, thanks for reporting this!
Could you share the json of the blocks that you're trying to load?
from blocknote.
Hi @doorkey, thanks for reporting this!
Could you share the json of the blocks that you're trying to load?
[
{
"id": "588f083d-c190-477b-8d63-dc5f63019840",
"type": "heading",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left",
"level": 2
},
"content": [
{
"type": "text",
"text": "This is a test doc"
}
],
"children": []
},
{
"id": "1bb7080a-0975-4c13-8d96-a71ca52a1ec6",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "Nice"
},
{
"type": "text",
"text": " job",
"styles": {
"italic": true
}
}
],
"children": []
},
{
"id": "368781c7-7bab-4734-a629-ff9f70f581c9",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [],
"children": []
},
{
"id": "cae662cf-3d54-40fa-ad58-31fa8f70a2d2",
"type": "paragraph",
"props": {
"textColor": "default",
"backgroundColor": "default",
"textAlignment": "left"
},
"content": [],
"children": []
}
]
from blocknote.
@YousefED please check above and let me know if you need anything else.
from blocknote.
Thanks. Both these items:
"content": [
{
"type": "text",
"text": "This is a test doc"
}
],
and
"content": [
{
"type": "text",
"text": "Nice"
},
I'm missing a styles
key. Normally, I'd expect this:
"content": [
{
"type": "text",
"text": "Nice",
"styles": {}
},
When you access editor.document
, it should always contain this empty styles object. Do you know where you are losing this information?
from blocknote.
@YousefED thanks, we will change our modal and try it. Appreciate.
from blocknote.
Related Issues (20)
- Tab does not work when highlighting multiple items HOT 1
- TypeError when inserting Custom inline block with content: 'none'
- Mouse Hover event still work outside the BlockNote div HOT 1
- Blocknote's PartyKit development server is 404
- Request for Custom Styling Options on Inline Components HOT 1
- Empty paragraphs are being removed HOT 2
- Multiple inline contenteditable in a custom Block HOT 1
- Video url can not use youtube url
- Can I trigger on remove section event? HOT 1
- Feedback for “Block Side Menu”
- Saving my BlockNote contents into a Database HOT 2
- MantineProvider not provided CSP nonce
- Blue border around custom block when dragged
- Trailing block false value making the app crash when i try to add a new image , file, video.
- Background Color Bug with None-Typed Content in Custom Blocks"
- onDelete events for Image block
- Docx and pdf
- Can't download files when editable is false
- Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 4
- Links are not detected after enter and in custom blocks
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.