... | in text_editor.naml |
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404
|
<macro name="editor_more_options_button">
<n.put_in_head Binary Namespace: HtmlNamespace
Parameters:
in_head
♦ ♦
<script type="text/javascript">
<![CDATA[
Nabble.hideEmail = function() {
var textarea = Nabble.get(textareaID);
var s = this.getSelection(textarea);
if( s != "" || (s=prompt("Enter the email address to obfuscate/hide (e.g., show user@host.com as user@...):","")) != null ) {
this.setSelection( textarea, "<email>" + s + "</email>" );
}
textarea.focus();
}
Nabble.uploadFile = function() {
Nabble.closeWindows();
var $fileDiv = $('#file-upload');
var isOpen = $fileDiv.css("display") != 'none';
var alreadyLoaded = window.fileuploader && $('#file-upload-form', window.fileuploader.document).size() == 1;
if (isOpen)
return;
else if (alreadyLoaded)
$fileDiv.show();
else {
var f = '';
if ($.browser.msie)
f += '<br style="line-height:1px"/>';
f += "<iframe id='fileuploader' name='fileuploader' src='/forum/UploadFile.jtp?node=" + nodeId + "' width='380' height='100' frameBorder='0' scrolling='no' allowtransparency='true'>";
$fileDiv.html(f).show();
}
};
Nabble.uploadedFile = function(name) {
var textarea = Nabble.get(textareaID);
this.setSelection( textarea, '<nabble_a href="'+name+'">'+name+'</nabble_a>' );
textarea.focus();
Nabble.closeWindows();
};
]]>
</script>
</n.put_in_head.>
<td class="nowrap has-dropdown">
<div id="file-upload" class="editor-dropdown medium-border-color light-bg-color drop-shadow" style="margin-left:-5em"></div>
<span id="tb-dropdown" class="dropdown">
<button class="toolbar" title="[t Macro ♦ ♦ Macro ♦ ♦
<n.tooltip Macro Parameters:
use_title, delay, contents, position
♦ ♦
<table class="light-bg-color medium-border-color drop-shadow">
<tr><td title="[t Macro ♦ ♦ Macro ♦ ♦
<tr><td title="[t Macro ♦ ♦ Macro ♦ ♦
<tr><td title="[t Macro ♦ ♦ Macro ♦ ♦
</table>
</span>
<script type="text/javascript">
dropdownInit('tb-dropdown');
</script>
</td>
</macro>
|
Free forum by Nabble | Edit this page |