Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of block-based widget editor (WordPress 5.8) #1058

Open
herrvigg opened this issue Aug 28, 2021 · 0 comments
Open

Support of block-based widget editor (WordPress 5.8) #1058

herrvigg opened this issue Aug 28, 2021 · 0 comments
Labels
core Core functionalities, including the admin section enhancement New feature or request gutenberg Specific to the Block Editor (Gutenberg) help wanted Extra attention is needed

Comments

@herrvigg
Copy link
Collaborator

herrvigg commented Aug 28, 2021

The fix for the widget editor #1042 was quite difficult to achieve, but it seems to work fine. This is using the Classic TinyMCE editor.

With WordPress 5.8 though, they have just enabled the support for the block-based widget editor.
It is enabled by default... which makes the widget fix obsolete... 😓
Hopefully (!) I found a a solution thanks to the Classic Widgets plugin. This plugin is just adding two lines of code to disable it, that I already integrated in the widget fix (#1042).

The widget block editor is a new feature difficult to support in qTranslate-XT since it's a different mechanism (REST and JS code): https://github.com/WordPress/gutenberg/tree/trunk/packages/edit-widgets.
It may be possible to achieve an initial support that is single-language based as for the post. But it's very difficult to dig into the Gutenberg code... Again this will require new hacks.

So this is the situation. I plan to release the current version in the current state, meaning that qTranslate-XT enforces the classic editor for the widgets. But it's still a bit unclear if this should be done only for specific widgets, since qTranslate-XT only handles the text widget... it's getting complicated.

@herrvigg herrvigg added gutenberg Specific to the Block Editor (Gutenberg) core Core functionalities, including the admin section enhancement New feature or request severity: major Major functionality and removed severity: major Major functionality labels Aug 28, 2021
@herrvigg herrvigg added this to To Do in Major topics Apr 7, 2023
@herrvigg herrvigg added the help wanted Extra attention is needed label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core functionalities, including the admin section enhancement New feature or request gutenberg Specific to the Block Editor (Gutenberg) help wanted Extra attention is needed
Projects
Development

No branches or pull requests

1 participant