'How to add Page builder in Adminhtml Block forms in Magento 2.4.3

I am new to Magento2 and I want to create an Admin form with a Page builder option to create a WYSIWYG builder like we are using for Magento 2 pages in Magento 2.4.3.

I tried with following code and I am getting basic TinyMCE builder. How can I replace it with the default Magento page builder?

Admin HTML form code:

 $fieldset->addField('table', 'editor', [
            'name' => 'table',
            'label' => __('Table'),
            'title' => __('Table'),
            'config' => $this->wysiwygConfig->getConfig([
                'add_variables' => false,
                'add_widgets' => true,
                'add_directives' => true
            ])
        ]);

Sorry for my bad English and Thanks in Advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source