Make WordPress Core

Opened 6 weeks ago

Last modified 4 weeks ago

#62924 new enhancement

TinyMCE uses deprecated “unload” event listener

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

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 6 weeks ago.

Download all attachments as: .zip

Change History (3)

#1 @sabernhardt
6 weeks ago

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

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

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

Last edited 4 weeks ago by sabernhardt (previous) (diff)

#2 @desrosj
4 weeks 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?

Note: See TracTickets for help on using tickets.