editor_toolbar

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "editor_toolbar".
... in mobile.naml
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<macro name="editor_toolbar" parameters="textarea_id, original_text, node_id" requires="mobile">
    <n.put_in_head.>
        <n.editor_stylesheet/>
        <style>
            .nabble div.toolbar { min-width: auto; max-width: none; }
        </style>
        <n.editor_shared_scripts textarea_id="[n.textarea_id/]" node_id="[n.node_id/]"/>
        <script>
            <![CDATA[
            $.browser = $.browser || {};
 
            $(document).ready(function() {
                $('div.toolbar').removeClass('shaded-bg-color');
                $('#message').removeAttr('style').css({width:'90%'}).attr('rows',15);
 
                $('div.toolbar button').each(function() {
                    var $btn = $(this);
                    if ($btn.text().length > 0) {
                        var img = $btn.html();
                        $btn.html(img.match(/<img[^>]+>/));
                        $btn.css('width','2.5em');
                    }
                });
            });
            ]]>
        </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_file_button/>
                <n.editor_smiley_button/>
            </tr>
        </table>
    </div>
</macro>