Visual Editor Custom Buttons - Bug Fix

Creado El diff nunca expira
1 eliminación
15 líneas
8 adiciones
15 líneas
// 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 )};