Commit 3c18ad49 authored by jojonaloha's avatar jojonaloha Committed by joseph.olstad

Issue #2574405 by jojonaloha: Uncaught TypeError: Cannot read property 'getData' of undefined

parent c9c60e1b
......@@ -39,7 +39,7 @@ = function(fieldKey) {
// WYSIWYG and Media CKEditor modules: it should be modified to remove that
// as soon as each module has been confirmed to provide their own implementation.
if (Drupal.wysiwyg && Drupal.wysiwyg.instances[fieldKey]) {
if (Drupal.wysiwyg && Drupal.wysiwyg.instances[fieldKey] && Drupal.wysiwyg.instances[fieldKey].status) {
// Retrieve the content from the editor provided by the WYSIWYG Module.
// Remove this case once the WYSIWYG module provides an override for this function.
return Drupal.wysiwyg.instances[fieldKey].getContent();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment