mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Cannot change email editor #3290
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#3290
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pichto on GitHub (Sep 10, 2018).
Issue
When writing or replying to an email, the WYSIWYG editor is always the same although i changed it under my profile.
It's alway a kind of green editor with very few options (see sceenshot)

Expected Behavior
The Editor should change when i change it under my profile preferences and should have more options.
Actual Behavior
It's never changing...
Possible Fix
Steps to Reproduce
Context
Cannot add some links for example.
medium priority
Your Environment
@pichto commented on GitHub (Jun 14, 2021):
Well... almost 3 years later and still no change...
Any clue ?
@pgorod commented on GitHub (Jun 14, 2021):
This is not strictly a bug, it's just something that was never added. The editor option affects the Email Templates module, but not the Email Compose dialogs.
I agree that the option should affect both. I actually did this change for my PowerReplacer add-on since I needed the ability to use direct HTML. It's quite messy code and it was a lot of work :-(
Technically speaking, what I did was create a new SugarField that renders the "configurable editor", and then use that in all the screens that need it.
My original plan was to make things progress so that I could eventually donate all this code to Core, where it belongs, but my plan didn't really work out and I am currently too busy with other things to think of another plan...
@Dillon-Brown commented on GitHub (Jun 14, 2021):
What @pgorod says here is accurate, even worse the TinyMCE editor in the email compose isn't even the same one used in email templates, we have two separate versions of TinyMCE in the project....
I don't think this would be too terribly difficult to standardize (which is what we are currently doing for the Search and PDF engines), ideally we should do this in a way that will allow custom developers to easily add new HTML editors too. Although that does bring up the question of if there should be separate settings for each module or just a global one for Emails/EmailTemplates/Cases, etc.
@pichto commented on GitHub (Jun 14, 2021):
Thank you both for your feedback. Didn't even think the two editors were so apart from each other.
Anyway, would be a really good idea to standardize all this and use the same editor everywhere. Would make things way more user friendly... The way it is done now made me thought it was a bug as it was supposed to be a normal behavior...
Also, writhing emails with this editor is not that friendly and welcoming... it makes the email module look a bit crappy and not finished for my taste.
I'm not into code, but let me know if i can help in any way.
@pgorod commented on GitHub (Jun 14, 2021):
The SugarField scheme is quite customizable as it is. It can easily be sub-classed. Also the Editors class is ready to be expanded.
The only part I think is missing regarding customization is a really easy way to set the TinyMCE settings. This could be achieved by separating these settings in to config files and read them also from custom dir when they exist there (per-module, perhaps also per-screen).
I used to think TinyMCE was crap but the recent versions, with all the extensibility they allow, are really powerful. So the goal should be to let SuiteCRM users (well, the ones who can code a bit) tap into that power.