| View previous topic :: View next topic |
| Author |
Message |
RickSanson
Joined: 14 Mar 2007 Posts: 36
|
Posted: Sep 25, 2007 6:10 pm Post subject: HTML Entered Directly Into The Template Fails |
|
|
Hi!
It's been awhile...
I am entering HTML directly into the template DB (using CSV) but the template file isn't read by Communimail.
What could be wrong?
Also, is there an update from 1.2
Thanks! |
|
| Back to top |
|
 |
admin Site Admin

Joined: 22 Mar 2006 Posts: 1487
|
Posted: Sep 25, 2007 6:16 pm Post subject: Re: HTML Entered Directly Into The Template Fails |
|
|
| RickSanson wrote: | Hi!
It's been awhile...
I am entering HTML directly into the template DB (using CSV) but the template file isn't read by Communimail.
What could be wrong?
Also, is there an update from 1.2
Thanks! |
Not sure what are you trying to do. Please clarify. |
|
| Back to top |
|
 |
RickSanson
Joined: 14 Mar 2007 Posts: 36
|
Posted: Sep 25, 2007 7:31 pm Post subject: |
|
|
For some reason, the TinyMCE editor doesn't like the HTML I am copying into it. So I am trying to add my HTML directly into the /db/Templates file.
TEMPL_ID,USER_ID,TITLE,BODY_TEXT,BODY_HTML
2,1,"NL02_HTML.html",,"My HTML is here"
After entering the HTML into the Templates file, Communimail either no longer see the Template file or it returns and error DB Error: Can't add Template --"
My real problem is that I have "known good" HTML but TinyMCE (I guess) doesn't like it at all. I have upgraded and downgraded TinyMCE with no success.
When using Dreamweaver for pure HTML code I cannot get any of Communiamil to work properly...
Thank you! |
|
| Back to top |
|
 |
RickSanson
Joined: 14 Mar 2007 Posts: 36
|
Posted: Sep 25, 2007 9:06 pm Post subject: |
|
|
I am finding that the Communimail doesn't like style information in the HTML...
I need to do this, how can I? |
|
| Back to top |
|
 |
admin Site Admin

Joined: 22 Mar 2006 Posts: 1487
|
Posted: Sep 26, 2007 1:55 pm Post subject: |
|
|
| RickSanson wrote: | For some reason, the TinyMCE editor doesn't like the HTML I am copying into it. So I am trying to add my HTML directly into the /db/Templates file.
TEMPL_ID,USER_ID,TITLE,BODY_TEXT,BODY_HTML
2,1,"NL02_HTML.html",,"My HTML is here"
After entering the HTML into the Templates file, Communimail either no longer see the Template file or it returns and error DB Error: Can't add Template --"
My real problem is that I have "known good" HTML but TinyMCE (I guess) doesn't like it at all. I have upgraded and downgraded TinyMCE with no success.
When using Dreamweaver for pure HTML code I cannot get any of Communiamil to work properly...
Thank you! |
You cant just insert HTML in database. That will not work because of quoting.
Looks like your HTML code is not valid in therms of TinyMCE.
If want quick solution - you can turn off TinyMCE by commenting its init on line 62 of file templates/templform.html.
You need to comment following call:
tinyMCE.init({
theme : "advanced",
mode : "exact",
elements : "BODY_HTML",
relative_urls : false,
remove_script_host : false,
content_css : "example_advanced.css",
// extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
plugins : "table",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_buttons1 : "bold,italic,underline,separator,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,forecolor",
theme_advanced_buttons1_add : "bullist,image,a,link,hr,separator,undo,redo",
theme_advanced_buttons2 : "tablecontrols, code",
theme_advanced_buttons3 : "",
//invalid_elements : "a",
// theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
debug : false,
oninit : "myInit"
}); |
|
| Back to top |
|
 |
RickSanson
Joined: 14 Mar 2007 Posts: 36
|
Posted: Oct 13, 2007 4:30 pm Post subject: |
|
|
Update:
My HTML was bad! No fault of Communimail! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|