Quote:
Originally Posted by mpj
How can I remove the default "
" and " </P>" tags.
I use CSS for my site and the default tags interfers with this code.
TEXT</P>
the only place I found the
tags was in the editor.js file.
I've taken that out and it still exist. Please help!
|
mpj,
Try this to remove the
</P> tags.
In editor.js, replace:
Code:
// fix placeholder URLS - remove absolute paths that IE adds
if (tagName == 'img') { tagBody = tagBody.replace(/(src\s*=\s*.)[^*]*(\*\*\*)/, "$1$2"); }
if (tagName == 'a') { tagBody = tagBody.replace(/(href\s*=\s*.)[^*]*(\*\*\*)/, "$1$2"); }
With:
Code:
// fix placeholder URLS - remove absolute paths that IE adds
if (tagName == 'img') { tagBody = tagBody.replace(/(src\s*=\s*.)[^*]*(\*\*\*)/, "$1$2"); }
if (tagName == 'a') { tagBody = tagBody.replace(/(href\s*=\s*.)[^*]*(\*\*\*)/, "$1$2"); }
if (tagName == 'p') { tagBody = ""; }
if (tagName == 'P') { tagBody = ""; }
That *should* remove the
</P>tags.
