... | in editor_bolditalic_button.naml |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<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>
|
Free forum by Nabble | Edit this page |