magento2-module-pagebuildersourcecode icon indicating copy to clipboard operation
magento2-module-pagebuildersourcecode copied to clipboard

Missing insert variable button within page builder text element toolbar.

Open yurirn opened this issue 4 years ago • 3 comments

Before installing this extension i was able to insert a magento variable within a text page builder element by selecting a insert variable button within the toolbar. After installing the extension i no longer see the button.

whats the code to call the button in adminhtml/di.xml?

@markshust can u help me?

yurirn avatar Jan 04 '22 13:01 yurirn

Thanks for the report. I confirmed that not only is the "Insert variable" icon missing, but so are the "Special character" and "Insert Widget" icons.

I'm still trying to find out why this is happening.

markshust avatar Jan 10 '22 19:01 markshust

Couldn't figure out the cause either, but using a plugin to insert the toolbar change instead worked and didn't cause these buttons to go missing.

class PageBuilderWysiwygConfigProviderPlugin {
    public function afterGetConfig(\Magento\PageBuilder\Model\Wysiwyg\DefaultConfigProvider $subject, \Magento\Framework\DataObject $result) {
        $tinymce = $result->getData('tinymce4');
        $tinymce['toolbar'] .= ' | code';
        $result->setData('tinymce4', $tinymce);
        return $result;
    }
}

It's not as clean as a single file, but at least it works.

GamesmenJordan avatar Mar 04 '22 02:03 GamesmenJordan

Can confirm the issue is also present in Magento 2.4.4 EE

stephen-larkbury avatar Apr 25 '22 15:04 stephen-larkbury