Make WordPress Core

Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#63691 closed defect (bug) (duplicate)

TinyMCE editor blank in combination with ACF/SCF and Guttenberg

Reported by: franklynjones's profile FranklynJones Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.7
Component: TinyMCE Keywords:
Focuses: ui, javascript Cc:

Description (last modified by sabernhardt)

The TinyMCE editor fails to initialise properly when using a combination of Gutenberg, and SCF/ACF WYSIWYG fields. On page load the Visual Tab is empty, if you switch back from Text to Visual the JS console produces the following error:

wp-tinymce.js?ver=49110-20201110:3 Uncaught TypeError: Cannot read properties of null (reading 'setBaseAndExtent')
    at i (wp-tinymce.js?ver=49110-20201110:3:291936)
    at Object.each (wp-tinymce.js?ver=49110-20201110:3:1346)
    at Object.select (wp-tinymce.js?ver=49110-20201110:3:293163)
    at _ (editor.min.js?ver=6.8.1:2:5063)
    at n (editor.min.js?ver=6.8.1:2:1731)
    at HTMLDocument.<anonymous> (editor.min.js?ver=6.8.1:2:248)
    at C (wp-tinymce.js?ver=49110-20201110:3:10800)
    at HTMLDocument.d (wp-tinymce.js?ver=49110-20201110:3:10946)
i @ wp-tinymce.js?ver=49110-20201110:3
each @ wp-tinymce.js?ver=49110-20201110:3
select @ wp-tinymce.js?ver=49110-20201110:3
_ @ editor.min.js?ver=6.8.1:2
n @ editor.min.js?ver=6.8.1:2
(anonymous) @ editor.min.js?ver=6.8.1:2
C @ wp-tinymce.js?ver=49110-20201110:3
d @ wp-tinymce.js?ver=49110-20201110:3Understand this error

Rolling back to 6.6.2 resolves the issue, as does using ClassicEditor plugin.

Change History (2)

#1 @sabernhardt
6 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #62450.

This discussion should belong on one ticket, so I moved the ticket description from here to your previous comment:11:ticket:62450.

#2 @sabernhardt
6 months ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.