editor_toolbar

NAML documentation   Watch a video
   Usages of this macro
... in editor_toolbar.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<override_macro name="editor_toolbar" parameters="textarea_id, original_text, node_id">
    <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.>
        <n.editor_stylesheet
Macro
/>
        <n.editor_shared_scripts
Macro
Parameters: textarea_id, node_id
 textarea_id="[n.textarea_id/]" node_id="[n.node_id/]"/>
        <script type="text/javascript" src="/util/minmax.js"></script>
    </n.put_in_head.>
    
    <div class="toolbar rounded-top shaded-bg-color">
        <table class="toobar">
            <tr>
                <n.editor_quote_button
Macro
Parameters: original_text
 original_text="[n.original_text/]"/>
                <n.editor_insert_image_button
Macro
/>
                <n.editor_bold_button
Macro
/>
                <n.editor_italic_button
Macro
/>
                <n.editor_link_button
Macro
/>
                <n.editor_smiley_button
Macro
/>
                <n.editor_embed_button
Macro
/>
            </tr>
        </table>
    </div>
</override_macro>
Overrides default macro
... in text_editor.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<macro name="editor_toolbar" parameters="textarea_id, original_text, node_id">
    <n.put_in_head.>
        <n.editor_stylesheet/>
        <n.editor_shared_scripts textarea_id="[n.textarea_id/]" node_id="[n.node_id/]"/>
        <script type="text/javascript" src="/util/minmax.js"></script>
    </n.put_in_head.>
    
    <div class="toolbar rounded-top shaded-bg-color">
        <table class="toobar">
            <tr>
                <n.editor_quote_button original_text="[n.original_text/]"/>
                <n.editor_insert_image_button/>
                <n.editor_bold_button/>
                <n.editor_italic_button/>
                <n.editor_link_button/>
                <n.editor_smiley_button/>
                <n.editor_subheaders_button/>
                <n.editor_embed_button/>
                <n.editor_more_options_button/>
            </tr>
        </table>
    </div>
</macro>