Guest User

Untitled

a guest
Dec 13th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <apex:commandButton value="Send" rendered="{!showEmail}"
  2. onClick="sendEmails();return false;"
  3. styleClass="slds-button slds-button_neutral" />
  4.  
  5. onClick="if(!confirm('Are you sure you want to send the email?'));return false;"
  6.  
  7. function sendEmails(){
  8. var temp = document.getElementsByClassName('emailbody')[0].id;
  9. var ckeditorBody = CKEDITOR.instances[temp].getData();
  10. CallSendEmail(ckeditorBody);
  11. }
  12.  
  13. <apex:actionFunction name="CallSendEmail" action="{!sendEmail}" rerender="errorMessageId">
  14. <apex:param name="Richbody" value="" assignTo="{!body}"/>
  15. </apex:actionFunction>
Add Comment
Please, Sign In to add comment