editor_italic_button

NAML documentation   Watch a video
   Usages of this macro
... in text_editor.naml
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<macro name="editor_italic_button">
    <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.>
        <script type="text/javascript">
            Nabble.italics = function() {
                var textarea = Nabble.get(textareaID);
                var s = this.getSelection(textarea);
                if( s != "" || (s=prompt("Enter text to make italics:","")) != null ) {
                    this.setSelection( textarea, "<i>" + s + "</i>" );
                }
                textarea.focus();
            };
        </script>
    </n.put_in_head.>
    <td class="nowrap">
        <button type="button" onclick="Nabble.italics()" class="toolbar" style="font-style:italic;height:1.65em" title="[t]Italic[/t]">
            <img src="/images/italic.png"/>
        </button>
        <n.tooltip
Macro
Parameters: use_title, delay, contents, position
 use_title="true"/>
    </td>
</macro>