Module

Archived
Forum
(read-only)

FireMail

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

CKEditor mangles template

Support (Resolved)

Steven Langbroek
Steven Langbroek

Hey guys,

I’m testing out a template I developed for a client, and was rather shocked to see CKEditor mangling it into oblivion. It added needless elements and what-not, despite my config.js override:

config.ignoreEmptyParagraph true;
 
config.fillEmptyBlocks false;
 
config.readOnly true;
 
config.fullPage true;
 
config.startupMode 'source'

Any thoughts on how to stop CKEditor from touching my code? I’m using a custom channel + fields and then importing it for the content anyway, there’s no need for my client to edit their e-mail here.

Thanks,

- Steven

Steven Langbroek
# 1
Steven Langbroek

Oh also: in the template I’m loading there’s an {unsubscribe_url}, but FireMail also adds a line of unsubscribe-information to the bottom… why does it do that and can I stop that?

PutYourLightsOn
# 2
Developer
PutYourLightsOn

you’ll need to put your config settings into the views/ckeditor_config.php file.

to remove the unsubscribe text just go into your mailing list template and remove it there.

Steven Langbroek
# 3
Steven Langbroek

It’s still mauling my templates… is there a way to completely disable CKEditor?

Steven Langbroek
# 4
Steven Langbroek

Mind responding to my last question? :)

PutYourLightsOn
# 5
Developer
PutYourLightsOn

to be honest i would start with good html code. ckeditor may change things a bit by trying to make it more xhtml and standards compliant but it shouldn’t be “mauling” your templates.

if you really want to disable ckeditor then simply comment out all of the javascript code in the views/ckeditor_config.php file.

Steven Langbroek
# 6
Steven Langbroek

I have started with valid XHTML1.0, but CKEditor is known to do things as wrap tables in paragraphs, and add needless
s. I’ll test disabling CKEditor, thanks for the reply.

Steven Langbroek
# 7
Steven Langbroek

Ah, it would appear this isn’t CKEditor’s doing but ExpressionEngine. I’ve fully disabled CKEditor, and it still adds empty paragraphs here and there… Does it pull everything through CI’s Typography class or something?

This is the actual template:
http://www.fashiondeal.nl/nieuwsbrief/bekijk/nieuwsbrief-fashiondeal-no.-3

This is the resulting HTML:
http://www.fashiondeal.nl/?ACT=39&email_id=29
(see the empty paragraph-tags everywhere).