rapila / plugin-newsletter

The newsletter plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Newsletter template CSS in detail widget

sabberworm opened this issue · comments

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.

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.