Cannot change email editor #3290

Open
opened 2026-02-20 16:03:23 -05:00 by deekerman · 5 comments
Owner

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)
capture d ecran 2018-09-10 a 09 41 51

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

  1. Go to Collaboration->emails->compose to see the editor
  2. go to profile->change the editor (bottom of the page), save changes
  3. go back to emails->compose
  4. no changes!

Context

Cannot add some links for example.

medium priority

Your Environment

  • SuiteCRM Version used: 7.10.7
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Opera 55 (same behavior with any other browser
  • Environment name and version (e.g. MySQL, PHP 7): MySQL 10.1.23, PHP 7.0.30, Nginx 1.10.3
  • Operating System and version (e.g Ubuntu 16.04): Debian Stretch (raspberry pi 3 with all latest patches)
Originally created by @pichto on GitHub (Sep 10, 2018). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> 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) <img width="1080" alt="capture d ecran 2018-09-10 a 09 41 51" src="https://user-images.githubusercontent.com/21138396/45283308-c921ae80-b4dd-11e8-8775-2c4d85665f4b.png"> #### Expected Behavior <!--- Tell us what should happen --> The Editor should change when i change it under my profile preferences and should have more options. #### Actual Behavior <!--- Tell us what happens instead --> It's never changing... <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Go to Collaboration->emails->compose to see the editor 2. go to profile->change the editor (bottom of the page), save changes 3. go back to emails->compose 4. no changes! #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> Cannot add some links for example. <!--- If you feel this should be a low/medium/high priority then please state so --> medium priority #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.10.7 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Opera 55 (same behavior with any other browser * Environment name and version (e.g. MySQL, PHP 7): MySQL 10.1.23, PHP 7.0.30, Nginx 1.10.3 * Operating System and version (e.g Ubuntu 16.04): Debian Stretch (raspberry pi 3 with all latest patches)
Author
Owner

@pichto commented on GitHub (Jun 14, 2021):

Well... almost 3 years later and still no change...
Any clue ?

@pichto commented on GitHub (Jun 14, 2021): Well... almost 3 years later and still no change... Any clue ?
Author
Owner

@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...

@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...
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#3290
No description provided.