Hi, I am using Evolution 3.46.4 and I have set up a Webkit Editor Plugin like:
~/.local/share/evolution/webkit-editor-plugins/font-color.js
'use strict';
var localhostFontColorPlugin = {
name : "localhostFontColorPlugin",
setup : function(doc) {
if (doc.body) {
doc.body.setAttribute("style", "color: #000000;")
}
}
};
EvoEditor.RegisterPlugin(localhostFontColorPlugin);
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:
Evo.RegisterPlugin(localhostFontColorPlugin);
instead of:
EvoEditor.RegisterPlugin(localhostFontColorPlugin);
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?
Greetings
Lioh