Visual Editor Custom Buttons - Bug Fix

作成日 差分は期限切れになりません
1 削除
15
8 追加
15
// 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 )};