GithubHelp home page GithubHelp logo

vanons / block-editor Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 12.0 1.35 MB

A javascript-only wrapper for the WordPress block-editor

TypeScript 80.88% SCSS 7.95% HTML 3.18% Shell 3.87% JavaScript 4.12%

block-editor's People

Contributors

mauricewijnia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

block-editor's Issues

Some quick tips on updating the upstream Gutenberg packages?

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?

More details

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 change

Changed 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:

View error

image

Thanks!

Update Gutenberg block editor to Latest version

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.