SuiteCRM
SuiteCRM copied to clipboard
Fix #9737 - Fix issue with campaigns displaying a blank email template
Use TinyMCE init function to set template body rather than triggering on page load
Suite7: #9737 Suite8: https://github.com/salesagility/SuiteCRM-Core/issues/413
Description
Currently in the Campaigns module the Email Template body is sometimes populated before the TinyMCE has finish initialising resulting in the Email Template being set to blank. This fix moves the onEmailTemplateChange in WizardMarketing.html from being triggered on page load to being triggered on a post init hook in the TinyMCE config. This allows the TinyMCE to initialise before setting the body contents.
Motivation and Context
Fixes issue with Email Template being set to blank when on the Email Template step in the Campaign wizard.
How To Test This
Create a template and set a template Relaunch the wizard and navigate to the Email Template step See that the template now populates as exp;ected
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Final checklist
- [x] My code follows the code style of this project found here.
- [ ] My change requires a change to the documentation.
- [x] I have read the How to Contribute guidelines.
Hello @JackBuchanan,
thanks for your PR!
Regards, Serhii