View Single Post
  #86  
Old 04-02-2005, 09:25 PM
 
mustang mustang is offline
 

eXpert
  
Join Date: Nov 2003
Location: US
Posts: 210
 

Default

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.
__________________
X-Cart Gold 4.2.3
-----
PHP 5.2.17 | MySQL 5.1.52
Reply With Quote