editor_bolditalic_button.naml
<macro name="editor_bolditalic_button">
<n.put_in_head.>
<script type="text/javascript">
Nabble.bolditalic = function() {
var textarea = Nabble.get(textareaID);
var s = this.getSelection(textarea);
if( s != "" || (s=prompt("Enter text to make both bold and italic:","")) != null ) {
this.setSelection( textarea, "<b><i>" + s + "</i></b>" );
}
textarea.focus();
};
</script>
</n.put_in_head.>
<td class="nowrap">
<button type="button" onclick="Nabble.bolditalic()" class="toolbar bold" style="height:1.65em" title="[t]BoldItalic[/t]">
<b>B</b>/<i>I</i>
</button>
<n.tooltip use_title="true"/>
</td>
</macro>