[RSS Feed/News] Broken recalculate function in editor.js

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom