Forum Moderators: coopster

Message Too Old, No Replies

Blast @ HTMLArea!

Some help with <img area="..." />

         

ahmedtheking

2:07 pm on Jul 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Blast!

I'm using HTMLArea for a CMS I'm making! I've had a look through the JS and written eregi and preg replace scripts to get rid of 'area' tag it adds to images, but it won't budge! Maybe my PHP is wrong, here it is:

$bodys = array("/border=\"[[:digit:]]\"/", "/vspace=\"[[:digit:]]\"/", "/hspace=\"[[:digit:]]\"/", "/align=\"[[:alpha:]]\"/", "/area=\"[[:digit:]]\"/");
$bodyr = array("","","","","");

$body = eregi_replace($bodys,$bodyr,$body);

Nevertheless, why does HTMLArea add it? I'm investigating at the mo, but if anyone knows, please post! Cheers :D

coopster

11:49 am on Jul 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It depends on which version of HTMLArea you are using, too. Have you tried their forums?

ahmedtheking

12:04 pm on Jul 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't find them!

coopster

2:06 pm on Jul 5, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Go to sourceforge and search for HTMLArea. Then click on the *support* link.