1 edb Apr 15, 2006 20:04
3 john Sep 20, 2006 16:22
While your editing the _quicktags.plugin.php another handy addition is to add a "class" prompt and insert for the IMG button.
Simply find...(at page bottom)..
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);
}
}
and replace with...'
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') ?>:', '')
+ '" class="' + prompt('<?php echo T_('Class') ?>:', '')
+ '" />';
b2evoInsertContent(myField, myValue);
}
}
Good addition - had it on .9.1 and finally got around to adding it to 1.8.1