Bug Broken recalculate function in editor.js

There is a bug in this version
0

021

Guest
When I try to extend the editor toolbar, I get the following error: TypeError: can't access property "filter", buttons is undefined

How do I try to extend the editor toolbar:
JavaScript:

Code:
const editor = XF.Element.getHandler(this.$form.find('.js-editor'), 'editor')
editor.buttonManager.adjustToolbar('toolbarButtons', ( buttons, name, manager ) => {
    return buttons // do nothing, just return buttons
})

You obviously need to rewrite the code of the recalculate function, because...

Read more

Continue reading...