vanons / block-editor Goto Github PK
View Code? Open in Web Editor NEWA javascript-only wrapper for the WordPress block-editor
A javascript-only wrapper for the WordPress block-editor
block-editor/src/lib/bind-input.ts
Line 26 in 9f6def6
this.element.value = value
And
block-editor/src/lib/bind-input.ts
Line 15 in 9f6def6
Should be
return this.element.value
Hi @mauricewijnia,
Thanks a lot for your work on this project! I've recently started integrating the block editor into a project of mine and your work here was a great help.
Could you please share (some quick dot points will do) how you go about updating the Gutenberg packages, and what to look out for when doing this?
The script https://github.com/VanOns/block-editor/blob/main/versions.sh that extracts the version numbers of the packages for a local Gutenberg clone is very useful.
I was able to run that after making a slight change (see below), and installed the versions extracted.
versions.sh
changeChanged the \d
character class to [0-9]
due to https://stackoverflow.com/a/3185498
- VERSION=$(cat $FILE | egrep -o '"version": (".*")' | egrep -o '\d+\.\d+\.\d+')
+ VERSION=$(cat $FILE | egrep -o '"version": (".*")' | egrep -o '[0-9]+\.[0-9]+\.[0-9]+')
I then built the library and fixed a few issues like replacing ReactDOM.render()
with createRoot()
.
Then I ran into other runtime issues that I'm now working my way through, like the one below that occurs whenever a dropdown menu is opened in the editor: it crashes the editor and shows a blank screen:
Thanks!
is it possible to bump version of gutenberg to latest version?
i think the new version is 12, and maybe more stable
I was wondering what are the issues that would arise if we try to do so
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.