Make WordPress Core

Opened 20 months ago

Last modified 3 weeks ago

#62924 new defect (bug)

TinyMCE uses deprecated “unload” event listener

Reported by: hackneyprotection Owned by:
Priority: normal Milestone: Awaiting Review
Component: TinyMCE Version: 4.0.6
Severity: normal Keywords: reporter-feedback
Cc: Focuses: javascript

Description

Hi,

I’m encountering a deprecated feature warning in the browser console when using TinyMCE in WordPress 6.7.1.

The affected file is located at:
“/wp-includes/js/tinymce/tinymce.min.js”

Screenshot of the error: ​https://postimg.cc/rznCCPxz
Could you please check if this can be updated in the next release?
Thanks!

Attachments (1)

wordtinymceissue.png​ (14.7 KB ) - added by hackneyprotection 20 months ago.

Download all attachments as: .zip

Change History (4)

#1 @sabernhardt
20 months ago

  • Focuses ui css php-compatibility removed
  • Keywords reporter-feedback changes-requested removed
  • Version 6.7.1 → 4.0

'unload' is in the ​setDocument function, part of TinyMCE 4.1.2 in [29203].

The comment (in the original changeset [29203]) mentions an ​IE permissions bug, so the parent event might not be necessary anymore.

Version 1, edited 20 months ago by sabernhardt (previous) (next) (diff)

#2 @desrosj
20 months ago

  • Keywords reporter-feedback added; dev-feedback removed

Could you proved a bit more detail to reproduce @hackneyprotection?

For example, when you say you are using TinyMCE, are you using the Classic Editor or a custom implementation?

#3 @thomasprice61
3 weeks ago

  • Type enhancement → defect (bug)
  • Version 4.0 → 4.0.6

Chrome (and Edge) have recently blocked unload

tinymce.min.js?ver=49110-20250317:2
[Violation] Permissions policy violation: unload is not allowed in this document.

Note: See TracTickets for help on using tickets.