... | in editor_taghtml_button.naml |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
<macro name="editor_taghtml_button">
<n.put_in_head.>
<script type="text/javascript">
Nabble.taghtmlDropdown = function() {
Nabble.closeWindows();
$('#codigohtml-dropdown').show();
};
Nabble.jsmbullet = function(vartxt) {
var textarea = Nabble.get(textareaID);
{
this.setSelection( textarea, vartxt );
}
textarea.focus();
};
</script>
</n.put_in_head.>
<td class="has-dropdown">
<div id="codigohtml-dropdown" class="editor-dropdown medium-border-color light-bg-color drop-shadow" style="padding:.5em;width:12em;margin-left:-5em">
<h3><t>HTML Code</t></h3>
<div style="margin:.5em 0 1em;">
<button type="button" onclick="Nabble.insert('p')" class="toolbar" style="height:1.65em" title="<[t]p[/t]>">
<p>
</button>
<button type="button" onclick="Nabble.insert('ul')" class="toolbar" style="height:1.65em" title="Lista Bullet">
<ul>
</button>
<button type="button" onclick="Nabble.insert('ol')" class="toolbar" style="height:1.65em" title="Lista Numérica">
<ol>
</button>
<button type="button" onclick="Nabble.insert('li')" class="toolbar" style="height:1.65em" title="Item Lista">
<li>
</button>
<button type="button" onclick="Nabble.jsmbullet('<br/>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="<[t]br[/t]> (elimine tag /p anterior)">
<br>
</button>
<button type="button" onclick="Nabble.jsmbullet('<hr/>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="<[t]hr[/t]>">
<hr>
</button>
</div>
<div style="margin:.5em 0 1em;">
<button type="button" onclick="Nabble.insert('center')" class="toolbar" style="height:1.65em" title="Centralização Simples">
Center
</button>
<button type="button" onclick="Nabble.jsmbullet('<iframe src="URL" height="300" width="400" frameborder="1" scrolling="auto"> </iframe>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="iframe">iFrame
</button>
</div>
<div style="margin:.5em 0 1em;">
<button type="button" onclick="Nabble.jsmbullet('<nabble_embed><video controls autoplay width="426" height="240"><source src="URL"></video></nabble_embed>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="Video">Video
</button>
<button type="button" onclick="Nabble.jsmbullet('<nabble_embed><audio controls autoplay><source src="URL"></audio></nabble_embed>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="Audio">Audio
</button>
<button type="button" onclick="Nabble.jsmbullet('<img src="URL" height="auto" width="auto" style="border:0px">');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="IMG">IMG
</button>
<button type="button" onclick="Nabble.jsmbullet('<a href="URL" target="_blank" style="cursor:zoom-in\;text-decoration:none"><img src="URL" width="480" border="0"></a>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="Link Img">Link Image
</button>
</div>
<div style="margin:.5em 0 1em;">
<button type="button" onclick="Nabble.jsmbullet('<table border="1" width="auto" style="border-collapse:collapse"> \r\n <!-- precisa estar no formato HTML <caption>Caption</caption> --> \r\n <th width="auto" height="auto">Título1</th> \r\n <th width="auto" >Título2</th> \r\n <tr height="auto"> \r\n <td align="center" valign="center" colspan="1" rowspan="1">célula1</td> \r\n <td align="center" valign="center" colspan="1" rowspan="1">célula1</td> \r\n </tr> \r\n</table>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="Tabela Padrão">
Tabela
</button>
<button type="button" onclick="Nabble.jsmbullet('<div id="nomedodiv" style="z-index:2;position:relative;left:0px;top:0px;background-color:orange;color:white;width:auto;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;height:auto;border:blue 1px solid;align:left">Texto do Div Texto do Div Texto do Div</div>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="DIV (position-border)">DIV-1
</button>
<button type="button" onclick="Nabble.jsmbullet('<div id="nomedodiv" style="z-index:2;position:relative;left:0px;top:0px;background-color:orange;color:white;width:auto;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;height:auto;border-radius: 10px;align:right;font-size:80%;text-align:center">Texto do Div Texto do Div Texto do Div</div>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="DIV (position-border-text center-font size">DIV-2
</button>
</div>
<div style="margin:.5em 0 1em;">
<button type="button" onclick="Nabble.jsmbullet('<div style="clear:both;float:right;width:auto;height:auto;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;font-size:80%;text-align:center;border:blue 1px solid; background-color:yellow;color:green">Texto do Div Texto do Div Texto do Div</div>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="DIV Float (border-text center-font size">DIV-3
</button>
<button type="button" onclick="Nabble.jsmbullet('<div style="position:absolute;left:150px;top:150px;width:auto;height:auto;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;font-size:80%;border:blue 1px solid;text-align:center; background-color:yellow;color:green">Texto do Div Texto do Div Texto do Div</div>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="DIV Position (border-text center-font size)">DIV-4
</button>
<button type="button" onclick="Nabble.jsmbullet('<div style="display:inline;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;font-size:80%;width:auto;height:auto;border:blue 1px solid; background-color:yellow;color:green">Texto do Div Texto do Div Texto do Div</div>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="DIV InLine (border-text center-font size)">DIV-5
</button>
</div>
<div style="margin:.5em 0 1em;">
<button type="button" onclick="Nabble.jsmbullet('<div style="display:block;width:auto;height:auto;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;text-align:center;font-size:80%;border:blue 1px solid;background-color:yellow;color:green">Texto do Div Texto do Div Texto do Div</div>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="DIV Block (border-text center-font size)">DIV-6
</button>
<button type="button" onclick="Nabble.jsmbullet('<div style="display:table-cell;text-align:center;vertical-align:middle;width:auto;font-size:80%;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px; background-color:#ff8800; color: #fff;height:80px;border-radius: 10px">Texto do Div Texto do Div Texto do Div</div>');Nabble.closeWindows()" class="toolbar" style="height:1.65em" title="DIV TableCell">DIV-7
</button>
</div>
</div>
<button type="button" class="toolbar" onclick="Nabble.taghtmlDropdown()">
<t>Tag HTML</t><img src="/images/more.png" width="10" height="10"/>
</button>
</td>
</macro>
|
Free forum by Nabble | Nabble® |