Roundcube Community Forum

Release Support => Pending Issues => Topic started by: soledk on September 14, 2007, 06:54:55 PM

Title: tinymce javascript error including fix
Post by: soledk on September 14, 2007, 06:54:55 PM
sending an email with subject but no body, results in javascript error, tinyMCE on line 1684

// check for empty body
  if ((input_message.value=='')&&(tinyMCE.getContent()==''))
   {
   if (!confirm(this.get_label('nobodywarning')))
    {
    input_message.focus();
    return false;
    }
   }

  return true;
  };


changeing it to the following removes the bug.


// check for empty body
  if (input_message.value=='')
   {
   if (!confirm(this.get_label('nobodywarning')))
    {
    input_message.focus();
    return false;
    }
   }

  return true;
  };
Title: tinymce javascript error including fix
Post by: ravendawson on January 21, 2011, 01:20:21 PM
A javascript error ay also occur when a broken image is sent via e-mail. Also, there are two types of javascript errors (http://windowsfix.org/how-to-fix-java-and-javascript-errors.html) you need to watch out for: syntax error and runtime error. Syntax error occurs when you make a mistake with your code; usually, when there is a missing character or typographical error. Runtime error, on the other hand, occurs when your script is not able to complete the instructions or if a specific object cannot be found.