Newsletter template CSS in detail widget
sabberworm opened this issue · 1 comments
sabberworm commented
The Newsletter’s template’s CSS is not applied to the textarea when editing a newsletter body.
In the old version, we used to do this as follows (TinyMCE):
setupcontent_callback: function(editorId, body, doc) {
var s = doc.createElement('style');
s.setAttribute('type', 'text/css');
s.appendChild(doc.createTextNode('{{newsletter_template_css}}'));
doc.getElementsByTagName('head')[0].appendChild(s);
}
We need to find the best way of doing this in CKEditor.
sabberworm commented
Richtext-CSS
The CSS used to format texts in the rich text edtor now comes from the template that is used to send the newsletter.
Closed by a468a27 as fixed.