CiviCRM

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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>

Activity

Hide
Amiteshwar Prasad added a comment -
Fixed in r23517.
Show
Amiteshwar Prasad added a comment - Fixed in r23517.
Hide
Kiran Jagtap added a comment -
Tested and Confirmed at r23534
Show
Kiran Jagtap added a comment - Tested and Confirmed at r23534
Hide
David Greenberg added a comment -
I've addressed the complexity of creating clickable links in either editor (items 1.2 and 2.) by adding detailed instructions in the pop-up help. This includes the requirement of selecting <other> as the Protocol when using fckEditor. At some point we should consider having the action links actually insert the link URL and some default link text (e.g .Click here to unsubscribe). - dgg
Show
David Greenberg added a comment - I've addressed the complexity of creating clickable links in either editor (items 1.2 and 2.) by adding detailed instructions in the pop-up help. This includes the requirement of selecting <other> as the Protocol when using fckEditor. At some point we should consider having the action links actually insert the link URL and some default link text (e.g .Click here to unsubscribe). - dgg
Hide
Yashodha Chaku added a comment -
assigning for 3.1 verification
Show
Yashodha Chaku added a comment - assigning for 3.1 verification
Hide
Sunny Sharma added a comment -
verified for v3.1
Show
Sunny Sharma added a comment - verified for v3.1

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: