Skip to content

Commit

Permalink
MDL-75244 form: Change checker should check existence of tinyMCE API
Browse files Browse the repository at this point in the history
The window.tinyMCE.editors API was present in version 3 of TinyMCE, but
is not present in later versions. As a result, this check tries to loop
over a variable which does not exist and throws an error in the process.

We should check that window.tinyMCE *and* window.tinyMCE.editors both
exist before attempting to loop over them.
  • Loading branch information
andrewnicols committed Jul 28, 2022
1 parent 4ce642e commit c48c431
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/form/amd/build/changechecker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c48c431

Please sign in to comment.