XF 2.0 Cannot read property 'icon' of undefined

Siropu

Well-known member
I'm using the XF editor for my Chat 2 add-on and it works fine. However, for some reason, the editor doesn't load for one of my customers, throwing this error:

JavaScript:
jquery-3.2.1.min.js?_v=e8cf33c7:2 Uncaught TypeError: Cannot read property 'icon' of undefined
    at b.html (editor-compiled.js?_v=e8cf33c7:44)
    at n (editor-compiled.js?_v=e8cf33c7:5)
    at o (editor-compiled.js?_v=e8cf33c7:5)
    at Object.p [as buildList] (editor-compiled.js?_v=e8cf33c7:5)
    at d (editor-compiled.js?_v=e8cf33c7:5)
    at p (editor-compiled.js?_v=e8cf33c7:5)
    at Object.q [as _init] (editor-compiled.js?_v=e8cf33c7:5)
    at b.load (editor-compiled.js?_v=e8cf33c7:5)
    at b.<anonymous> (editor-compiled.js?_v=e8cf33c7:5)
    at HTMLTextAreaElement.e (jquery-3.2.1.min.js?_v=e8cf33c7:2)

What can cause this issue?
 
I noticed, that problem with jQuery is only if I enable "Below forum list" and "Above content" display mode. If I selected "All pages" mode, my profile posts in sidebar works without errors, but editor in Chat 2 still doesn't work.
 
I have found the issue. It is related to the removebuttons editor option and it seems to be a bug. If I disable one of the following buttons: Quote, Spoiler, Code, editor doesn't load throwing the above error. But if I disable all buttons, it works. How strange is that?
 
  • Like
Reactions: CNK
Back
Top Bottom