... | 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 Binary Namespace: HtmlNamespace
Parameters:
in_head
♦ ♦
<n.editor_stylesheet Macro ♦ ♦
<style>
.nabble div.toolbar { min-width: auto; max-width: none; }
</style>
<n.editor_shared_scripts Macro Parameters:
textarea_id, 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 Macro Parameters:
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_file_button Macro ♦ ♦
<n.editor_smiley_button Macro ♦ ♦
</tr>
</table>
</div>
</macro>
|