Forum Replies Created
-
AuthorPosts
-
April 26, 2024 at 1:58 PM in reply to: Wysiwyg editor in Blocks not have Tab to change mode html or Visual #45319
[email protected]
ParticipantWe just tried with context='side', with all plugins deactivated, and even switching WordPress themes, but it still fails.
Regards
April 26, 2024 at 1:43 PM in reply to: Wysiwyg editor in Blocks not have Tab to change mode html or Visual #45318[email protected]
ParticipantHello,
Our block doesn't have the context != 'side', it's context='normal'. When we click on the pencil edit icon, it doesn't change to the eye, and the WYSIWYG only appears in text mode. We've tried deactivating all the plugins and it still happens. This is occurring in several projects after updating to the new version. Any ideas on what might be causing this?
Definition Block: https://ibb.co/Nj1Sjqd
MB-Block 1.5.0 - Fail: https://ibb.co/JsjM5Pz
MB-Block 1.4.2 - Correct: https://ibb.co/XZT955fRegards.
April 25, 2024 at 4:15 PM in reply to: Wysiwyg editor in Blocks not have Tab to change mode html or Visual #45310[email protected]
ParticipantWe can revert to previous versions using composer? composer require meta-box/mb-blocks:1.4.2 it fails, saying that it's only possible to download the master. With mb-blocks version all is corrected.
Thx and regards
April 25, 2024 at 2:55 PM in reply to: Wysiwyg editor in Blocks not have Tab to change mode html or Visual #45309[email protected]
ParticipantI tried with the old composer.json and with this new one updating all versions and got the same problem.
"require": { "aws/aws-sdk-php": "3.238.6", "wpackagist-plugin/meta-box": "dev-trunk", "wpackagist-plugin/mb-rest-api": "dev-trunk", "meta-box/mb-revision": "dev-master", "meta-box/mb-settings-page": "dev-master", "meta-box/meta-box-conditional-logic": "dev-master", "meta-box/meta-box-group": "dev-master" },[email protected]
ParticipantWhat is happening?
Thanks in advance
[email protected]
ParticipantHi again,
In local I don't reproduce the core/button, core/media-text.
The require field still doesn't work correctly and it doesn't work on custom fields of custom taxonomies either.
[email protected]
ParticipantSorry for the previous errors in the post. This is the console error:
Block validation: Block validation failed for
core/button(
Content generated bysavefunction:Block validation: Block validation failed for
core/media-text
Content generated bysavefunction:And this is the code
$meta_boxes[] = [ 'title' => __('Hero', DOMAIN), 'id' => 'sng-hero', 'description' => __('Hero', DOMAIN), 'type' => 'block', 'icon' => 'awards', 'category' => 'sng-blocks', 'render_template' => PATH . '/gutenberg-blocks/hero/template.php', 'preview' => [ 'esPreview' => '1', 'capture' => get_template_directory_uri() . '/assets/img/previews/hero.png', ], 'enqueue_assets' => function () { }, 'supports' => [ 'customClassName' => true ], 'fields' => [ [ 'type' => 'single_image', 'id' => 'image', 'name' => __('Imagen', DOMAIN) ], [ 'type' => 'text', 'id' => 'title', 'name' => __('Título',DOMAIN), 'required' => true ], ] ] -
AuthorPosts