Hi Greg,
Thanks for helping out.
I’m using ExpressionEngine 1.6.6, Build: 20081114
I’ll try and explain a little better what is happening. I’m in one of my stand alone entry forms. I click in a field and then click on the “email” button. It brings up the pop-up windows asking for the email address and other details just as in the control panel. Difference is that when you are finished filling in everything, nothing gets put in the field you had your cursor in. If I do the same thing for the link or image button, it works fine and puts the proper code in the field. It’s really just the email button that doesn’t work. I was assuming it has something to do with the encode that goes along with the email button, but I’m just guessing.
In addition, the email encoding gets messed up when I try to edit an entry that has an encoded email in it (which, because of the problem above, I can only put in using the control panel). It gets converted to the following:
[removed]
//<![CDATA[
var l=new Array();
var output = ‘’;
l[0]=’>’;l[1]=‘a’;l[2]=’/’;l[3]=’<’;l[4]=’ 109’;l[5]=’ 111’;l[6]=’ 99’;l[7]=’ 46’;l[8]=’ 121’;l[9]=’ 116’;l[10]=’ 101’;l[11]=’ 102’;l[12]=’ 97’;l[13]=’ 115’;l[14]=’ 45’;l[15]=’ 116’;l[16]=’ 101’;l[17]=’ 110’;l[18]=’ 64’;l[19]=’ 115’;l[20]=’ 101’;l[21]=’ 109’;l[22]=’ 117’;l[23]=’ 115’;l[24]=’ 101’;l[25]=’ 114’;l[26]=’>’;l[27]=’\”’;l[28]=’ 109’;l[29]=’ 111’;l[30]=’ 99’;l[31]=’ 46’;l[32]=’ 121’;l[33]=’ 116’;l[34]=’ 101’;l[35]=’ 102’;l[36]=’ 97’;l[37]=’ 115’;l[38]=’ 45’;l[39]=’ 116’;l[40]=’ 101’;l[41]=’ 110’;l[42]=’ 64’;l[43]=’ 115’;l[44]=’ 101’;l[45]=’ 109’;l[46]=’ 117’;l[47]=’ 115’;l[48]=’ 101’;l[49]=’ 114’;l[50]=’:’;l[51]=‘o’;l[52]=‘t’;l[53]=‘l’;l[54]=‘i’;l[55]=‘a’;l[56]=‘m’;l[57]=’\”’;l[58]=’=’;l[59]=‘f’;l[60]=‘e’;l[61]=‘r’;l[62]=‘h’;l[63]=‘a ‘;l[64]=’<’;
for (var i = l.length-1; i >= 0; i=i-1){
if (l.substring(0, 1) == ' ') output += "&#"+unescape(l.substring(1))+";";
else output += unescape(l);
}
document.getElementById(‘eeEncEmail_SZw6XhuYNe’)[removed] = output;
//]]>
[removed]
And if you submit it like this, then that will display as the output on your webpage. So, it basically breaks it if I try and use the edit form. So, to sum up, I can’t use the button at all in the entry form and even if I could, the edit form would do the above to it and break it. So, I’m looking for a solution to both problems without having to add TinyMCE or some other editor. I hope this makes more sense.
Thanks again.