Comments (2)
I tested it out by changing br
to a div
that gets the children. It seemed to worked (no more editor crash)
div.as.br.tag.mp4
I think all the components in https://github.com/decaporg/decap-cms/blob/6266ccc16a8a992695d4bdf13a63746986cedc3e/packages/decap-cms-widget-markdown/src/MarkdownControl/renderers.js might need to render out {props.children} for slate to not throw when nodes get deleted.
from decap-cms.
Maybe it's the <br>
tag that is being inserted via
decap-cms/packages/decap-cms-widget-markdown/src/MarkdownControl/renderers.js
Lines 207 to 209 in 6266ccc
children
as described in ianstormtaylor/slate#3930
Might need to do something like
function Break(props) {
return <><br {...props.attributes} />{props.children}</>;
}
from decap-cms.
Related Issues (20)
- TypeError: Cannot destructure property 'decorations' of 'It' as it is undefined.
- Folder collection path based on fields
- NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child o... HOT 2
- Editor Does not respect Custom Mount Element
- Author-login empty on commit messages for Azure backend
- Couple Review Step in Editorial Workflow to Approval of PR in Version Control System
- test:all script is unavailable
- When install decap-cms-widget-markdown, it throw unmet peer error
- TypeError: Cannot read properties of undefined (reading 'path')
- RangeError: Invalid time value
- Deploying a template does not work
- UI Bug with Media Header Button
- Netlify Identity login dialog misbehaving - https://identity-js.netlify.com/v1/netlify-identity-widget.js not found HOT 1
- How to prevent users logged in with decap-cms from seeing the source code of the website? HOT 1
- datetime widget time picker does not accept any valid input
- local backend and auth HOT 3
- Error: Cannot get the start point in the node at path [7] because it has no start text node.
- Error: Cannot resolve a DOM node from Slate node: {"text":""} HOT 1
- Only date('format') filter in Summary String Transformations work. All others are broken. HOT 1
- TypeError: marked is not a function 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 decap-cms.