I’m creating a Campaign Template and I’m seeing that editor is auto-inserting an HTML paragraph element around the [CONTENT] tag that I insert to display the content in a specific place in the template.
Is there a way to stop this happening, as I would like the [CONTENT] tag to simply be inserted exactly as I code it.
The addition of this paragraph element is disrupting the final layout of my email such that it doesn’t format correctly.
Thanks for replying so quickly Anna.
How would I do this? I’ll give this a go and see if I can’t just create the code like that.
Although, it’s really handy to be able to see the formatted content as it would appear.
I suppose I can always just create the HTML in another editor to be able to see the formatted output first, and then get it into phpList.
If you could just let me know how I would just create the HTML without using the editor - that would be great!
(I’m a little new to the whole phpList world!)
Apologies & Thanks.
Sorry Anna, I’ve just Googled how to remove the editor, and it appears that I just make a configuration file change and set the editor value to zero - this is fine, and I’ll try this.
I suppose my question is now then, is this insertion of the paragraph element to do with the FCKeditor or is it on the phpList side of things - I’m not sure where to look into whether I can get this behavior to stop?
I’m fine with creating HTML myself, or using another editor and then copying in the HTML - I’m a coder anyway - this is fine.
I just really need to know whether I can firstly get rid of this issue, which would be great, or if not, then secondly, just come up with a nice work around!
Answers to your questions.
The editor is two yellowish lines, definitely not silver.
Do you mean whether the paragraph insertion issue still happens if I chose no template - No. If I simply create content and use the [CONTENT] tag, the issue doesn’t seem to happen - it does appear as though the problem only exists when I’m trying to create my template.
Anna, as a new user, I cannot yet upload images - apologies.
I’m using the [CONTENT] tag in my template, not in my actual email.
The email and the tags and everything else is working, apart from the fact that the paragraph element gets added in to the source code, around the [CONTENT] tag automatically, and this only seems to happen within a template creation edit.
This must be something to do with the way that the phpList template editor is formatting the html text in the background.
It seems to be recognising that I have inserted the [CONTENT] tag but then goes ahead and wraps it with the paragraph element, which is really annoying, as I need it to be exactly where I placed it, without any additional (assumed) HTML.
It will be a shame if I cannot get this sorted out, as it means that I will need to change the way my email looks.
I basically have a good looking header, all good, and good footer and a good content section, but then there are blank lines that are seen between them because of the paragraph element inserted!
My final email (the one that I receive) has the additional p tag and /p tag present (and the obvious blank line!), and I see this show up after saving in the template editor.
I think I’m just going to have to get rid of the formatting I have and make the content section plain white background and a text email, rather than trying to make it look the same as the header and footer - never mind.
What does your template look like, can you show the context of where you want to put the CONTENT placeholder? I suspect that it needs to be within a block level element, so you should be able to manually surround it with, say, a div element.
I guess that Anna’s template has the CONTENT placeholder within a td element.
Also, you should install the CKEditor plugin, as the FCKeditor, which you are using, might have other restrictions.