Visual Editor Custom Buttons - Bug Fix

Created Diff never expires
1 removal
15 lines
8 additions
15 lines
// Old Version
// New Version (fixed)


if ($radio == "wrap") {
if ($radio == "wrap") {
$content .= "QTags.addButton( 'btn".$count."', '".$tagtitle."', '".$left_tag."', '".$right_tag."' );
$content .= "if ( typeof QTags != 'undefined' ) {QTags.addButton( 'btn".$count."', '".$tagtitle."', '".$left_tag."', '".$right_tag."' )};
";
";
} else {
} else {
$content .= "QTags.addButton( 'btn".$count."', '".$tagtitle."', '".$block_content."', '' );
$content .= "if ( typeof QTags != 'undefined' ) {QTags.addButton( 'btn".$count."', '".$tagtitle."', '".$block_content."', '' )};
";
";
}
}
endif;
endif;
endwhile;
endwhile;
$content .= "
$content .= "


QTags.addButton( 'tag', 'Link Tag', prompt_user );
if ( typeof QTags != 'undefined' ) {QTags.addButton( 'tag', 'Link Tag', prompt_user )};