Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4983

CiviMail Compose HTML Message: Message text disappears on form errors (TinyMCE). Unable to create clickable action links in either editor.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: CiviMail
    • Labels:
      None

      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&amp;jid=&amp;qid=&amp;h=">Click here to optout.</a>

        Attachments

          Activity

            People

            • Assignee:
              sunny.sharma Sunny Sharma
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: