Comments (4)
It looks like code blocks are intermittently broken on Plate's docs site, both on the full playground and on the basic marks page. If you refresh multiple times, sometimes it will render correctly; other times it will be broken.
from plate.
@12joan Do you have any idea about this bug? I watch the CodeBlockElement
component render, it seems like run correctly, but the dom exactly is wrong. I'm trying to find out what cause the problem, but I have no idea until now :(
from plate.
@AXiLiYa Sorry, I'm not sure what's causing this. I'm not seeing it when running the dev server locally, so it might be specific to Next.js's production environment.
from plate.
@12joan That's really strange. I have cloned the souce code and run dev (I have checked out main
branch). In the page, the problem appeared almost erverytime when I refresh browser.
I also use plate in a client render project after package it(I'm using v22 version). The problem also exists when I pass the initialValue
. But when I change the way of setting value may like this (if I dont't make mistake)
function MyEditor() {
const editor = useRef()
function updateValue(value) {
editor.current.children = value
editor.current.onChange()
}
useEffect(() => {
setTimeout(() => updateValue(someValueWithCode), 100)
}, [])
// without using intialValue
return <Plate ref={editor} />
}
It can work properly.
from plate.
Related Issues (20)
- Keyboard appears on tablet on clicking checkbox
- createLinkPlugin getNode not working working/ELEMENT_LINK target `undefined`
- Floating toolbar button will move with scroll
- Fix ESLint config after upgrade HOT 9
- Alignment Issue : When whole text is selected it always shows left aligned HOT 10
- Use the LinkFloatingToolbar to prompt useEditorRef must be used inside a Plate or PlateController HOT 3
- Server Endpoint for Converting HTML to Plate format HOT 1
- insertNodes api causing uncertain behaviour. HOT 3
- Unable to go to new line on list items HOT 2
- Official website download has incomplete dependencies HOT 1
- Type `PlateElementProps` is broken
- Command is invalid, when I install emoji-combobox in platejs.org HOT 2
- This is not zustand-x... HOT 1
- Regression: `serializeHtml` now 10x slower HOT 2
- zIndex bug in `SiteHeader, FixedToolbar`
- Running a jest test generates `Cannot find module '@udecode/plate-core/server'` error
- can not get the value of excalidraw HOT 1
- Can't turn text into link
- Tel link doesn't work Link Plugin HOT 2
- Block drag handle not clearly visible, submits form on click, and tooltip gets clipped. HOT 1
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 plate.