Details
Description
Several issues with CiviMail Create Mailing - Mailing Content form (CRM_Mailing_Form_Upload). The first issue is critical since data is lost.
1. With TinyMCE as your editor:
1.1 The entire HTML message body is lost if formRule errors are triggered.
- New mailing, progress to step 3
- Enter some text in the HTML Format editor window, but don't include the Optout token
- Click Next
- You'll get expected error on required token missing, BUT your editor message window is emptied
NOTE: This problem does NOT occur with fckEditor.
1.2 I don't see how users can possibly include a clickable OptoutURL link in their message using the "link" dialog tool. If I put the token in the pop-up Link dialog as the URL - I wind up with the following - which evaluates incorrectly:
<a href="http://localhost/dgg/drupal69/civicrm/mailing/
{action.optOutUrl}">Click here to optout.</a>
evaluates as this in (in Preview window):
<a href="http://localhost/dgg/drupal69/civicrm/mailing/http://localhost/dgg/drupal69/civicrm/mailing/">Click here to optout.</a>
2. With fckEditor - the behavior when you try to create a clickable link for action tokens like Optout is also a problem. In this case, I can copy the token into the URL in the dialog - BUT fckEditor forces me to select the protocol separately so I wind up with this:
<a href="http://http://localhost/dgg/drupal69/civicrm/mailing/optout?reset=1&jid=&qid=&h=">Click here to optout.</a>