Javascript error when using acf blocks and tinymce
-
Hi, I’m using acf blocks in combination with the acf tinymce field. So when using a tinymce field in a registered gutenberg block, i got an error in console:
Uncaught TypeError: Cannot read property 'buttons' of undefined at Object.buildQuicktags (acf-input.min.js?ver=5.8.1:4) at Object.initializeQuicktags (acf-input.min.js?ver=5.8.1:4) at Object.initialize (acf-input.min.js?ver=5.8.1:4) at n.initializeEditor (acf-input.min.js?ver=5.8.1:3) at n.initialize (acf-input.min.js?ver=5.8.1:3) at n.e (acf-input.min.js?ver=5.8.1:1) at n.acf.Model (acf-input.min.js?ver=5.8.1:1) at n [as constructor] (acf-input.min.js?ver=5.8.1:1) at new n (acf-input.min.js?ver=5.8.1:1) at Object.acf.newField (acf-input.min.js?ver=5.8.1:1)
The error occurs only when clicking in the block to edit it, while first click just marks the whole block blue. I have to click twice to see the broken content.
If this happens, the layout gets broken and the text in tinymce is getting white (you have to select the content to see it), and the fields are disordered. Changing to another tab (I have two acf tabs, one for the content and one for settings who are shared by a clone field, like spacings, etc.) is not working then, too.
Since i’m using the tinymce field a lot, this is very annoying. My acf version is the newest (5.8.1) and wordpress also (5.2.2).
- The topic ‘Javascript error when using acf blocks and tinymce’ is closed to new replies.