... | in text_editor.naml |
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
|
<macro name="editor_bold_button">
<n.put_in_head Binary Namespace: HtmlNamespace
Parameters:
in_head
♦ ♦
<script type="text/javascript">
Nabble.bold = function() {
var textarea = Nabble.get(textareaID);
var s = this.getSelection(textarea);
if( s != "" || (s=prompt("Enter text to make bold:","")) != null ) {
this.setSelection( textarea, "<b>" + s + "</b>" );
}
textarea.focus();
};
</script>
</n.put_in_head.>
<td class="nowrap">
<button type="button" onclick="Nabble.bold()" class="toolbar bold" style="height:1.65em" title="[t]Bold[/t]">
<img src="/images/bold.png"/>
</button>
<n.tooltip Macro Parameters:
use_title, delay, contents, position
♦ ♦
</td>
</macro>
|