From: monishdeb Date: Wed, 31 Jul 2013 15:51:44 +0000 (+0530) Subject: CRM-8813 Message Template fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d3c81b6bca57881daca8ee9e1a1e2550a8dbaa64;p=civicrm-core.git CRM-8813 Message Template fix ---------------------------------------- * CRM-8813: Fix token insert cursor placement issue in Plain Text message body on IE 8 http://issues.civicrm.org/jira/browse/CRM-8813 --- diff --git a/templates/CRM/Mailing/Form/InsertTokens.tpl b/templates/CRM/Mailing/Form/InsertTokens.tpl index c8918cb5a9..425693049e 100644 --- a/templates/CRM/Mailing/Form/InsertTokens.tpl +++ b/templates/CRM/Mailing/Form/InsertTokens.tpl @@ -292,7 +292,7 @@ function tokenReplText(element) { ( isMailing ) ? text_message = "subject" : text_message = "msg_subject"; } else if ( element.id == 'token1' ) { - text_message = "text_message"; + ( isMailing ) ? text_message = "text_message" : text_message = "msg_text"; } cj( "#"+ text_message ).replaceSelection( token );