Webkit Preview Font Color

Hi, I am using Evolution 3.46.4 and I have set up a Webkit Editor Plugin like:


'use strict';

var localhostFontColorPlugin = {
   name : "localhostFontColorPlugin",
   setup : function(doc) {
      if (doc.body) {
          doc.body.setAttribute("style", "color: #000000;")


As I would like to use the same for the Preview, I have just copied it to ~/.local/share/evolution/preview-plugins/font-color.js and just changed the last line to:


instead of:


as recommended here: Apps/Evolution/Extensions - GNOME Wiki!

For the Editor it works as expected but for the Preview it does not seem to do anything. The example from the page above works, though.

Do you have any idea what I am doing wrong?


The example from the page above works, though.


if it works, then a “diff” of the two plugins may give a clue?

Do you have any idea what I am doing wrong?

It depends on the message itself, there are many ways how to set text
color, not only on the body, but on many elements. Maybe consider
Edit->Preferences->Mail Preferences->HTML Messages->Unset colors
provided in HTML mails in message preview option. It’s not 100%
accurate too, due to the same reasons, but it’s quite close.

By the way, changing color unconditionally can cause the text not being
visible. Think of a rectangle with a dark background containing a text,
to which you set a black text color.


This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.