Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Wysiwyg editor in meta box below block editor breaks on some occasions

Aperta
#1,031 3 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, php, wordpress
Ambito
content, frontend

Direzione di ricerca

Riproduci questo in WordPress con un campo WYSIWYG ACF in una metabox sotto l’editor a blocchi, quindi ispeziona la console del browser mentre passi dalle modalità Visual e Text. È completato quando il testo salvato rimane visibile dopo il ricaricamento e il passaggio da una modalità all’altra non produce più l’errore di selezione di TinyMCE segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug
When I use the WYSIWYG editor field in a meta box that sits below the WordPress block editor, sometimes it appears also if there is no text. And if you look at the JavaScript console, it shows the volgende error message when I try to switch between the 'Visual' and 'Text' tabs:

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

To Reproduce
Steps to reproduce the behavior:
Create a WYSIWYG field and add it to a metabox that sits below a block editor. Add some text to it, save it, and switch between text and visual modes. Reload the page. The text will be gone (sometimes, not always - that makes this bug tricky to reproduce).

Expected behavior
The text in the editor field should appear at all times.

Version Information:

  • WordPress Version: 7.1
  • PHP Version: 8.2.33
  • ACF Version: Pro 6.8.9
  • Browser: Chrome 152.0.7977.76
Lingua principale
PHP
Stelle
946
Fork
197
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AdvancedCustomFields/acf

Tutte le issue di AdvancedCustomFields/acf

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.