Recent Topics

1 Jul 26, 2005 18:38    

When I click on the IMG button it brings up three pop-ups - one that allows me to enter the url of the image, and then two names (which seem irrelevant).

I have stopped using the button and instead simply type in (or copy and paste)

<img src="http://www.yourdomain/folder/image.jpg" align="left" border="10" />

This align="left"/ option allows for the text to wrap around the image and makes for a cleaner look.

My question is that this button has to have the code default in somewhere and this probably can be edited to allow my to add the align/border information and get rid of the naming deal... But I don't really know where to go to edit this?

Any ideas?

2 Jul 26, 2005 20:31

you will find this code in /plugins/toolbars/_quicktags.toolbars.php on line 384

		function b2evoInsertImage(myField) {
			var myValue = prompt('<?php echo T_('URL') ?>:', 'http://');
			if (myValue) {
				myValue = '<img src="'
						+ myValue
						+ '" alt="' + prompt('<?php echo T_('ALTernate text') ?>:', '')
						+ '" title="' + prompt('<?php echo T_('Title') ?>:', '')
						+ '" />';
				b2evoInsertContent(myField, myValue);
			}
		}

3 Jul 27, 2005 08:31

The alt and title text isn't useless at all. They're an accepted convention of the internet, and required under british accessability laws (at least) for commercial sites. They help visually impaired users be able to use your site, anf they tell the user what the image is if the image cannot be loaded.

4 Jul 27, 2005 16:36

Worked great... even able to add my path to my images folder so that I only have to put the name of the picture in...


Form is loading...