Skip to content

Commit

Permalink
Merge branch 'MDL-75244-311' of https://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_311_STABLE
  • Loading branch information
junpataleta committed Jul 29, 2022
2 parents fc65a2e + a28e929 commit 5f6923a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -205,7 +205,7 @@ M.core_formchangechecker.get_form_dirty_state = function() {
// Handle TinyMCE editor instances
// We can't add a listener in the initializer as the editors may not have been created by that point
// so we do so here instead
if (typeof window.tinyMCE !== 'undefined') {
if (typeof window.tinyMCE !== 'undefined' && window.tinyMCE.editors) {
for (editor in window.tinyMCE.editors) {
if (window.tinyMCE.editors[editor].isDirty()) {
return 1;
Expand Down

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

Expand Up @@ -205,7 +205,7 @@ M.core_formchangechecker.get_form_dirty_state = function() {
// Handle TinyMCE editor instances
// We can't add a listener in the initializer as the editors may not have been created by that point
// so we do so here instead
if (typeof window.tinyMCE !== 'undefined') {
if (typeof window.tinyMCE !== 'undefined' && window.tinyMCE.editors) {
for (editor in window.tinyMCE.editors) {
if (window.tinyMCE.editors[editor].isDirty()) {
return 1;
Expand Down
2 changes: 1 addition & 1 deletion lib/yui/src/formchangechecker/js/formchangechecker.js
Expand Up @@ -203,7 +203,7 @@ M.core_formchangechecker.get_form_dirty_state = function() {
// Handle TinyMCE editor instances
// We can't add a listener in the initializer as the editors may not have been created by that point
// so we do so here instead
if (typeof window.tinyMCE !== 'undefined') {
if (typeof window.tinyMCE !== 'undefined' && window.tinyMCE.editors) {
for (editor in window.tinyMCE.editors) {
if (window.tinyMCE.editors[editor].isDirty()) {
return 1;
Expand Down

0 comments on commit 5f6923a

Please sign in to comment.