mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Update posting_editor.tpl (#820)
This commit is contained in:
parent
9bf3b78352
commit
dc46528918
1 changed files with 39 additions and 24 deletions
|
@ -70,6 +70,8 @@ ajax.callback.posts = function(data) {
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<span class="buttons">
|
<span class="buttons">
|
||||||
|
<input type="button" value="sup" name="codeSup" title="{L_SUPERSCRIPT}" />
|
||||||
|
<input type="button" value="sub" name="codeSub" title="{L_SUBSCRIPT}" />
|
||||||
<input type="button" value="—" name="codeHR" title="{L_HOR_LINE}" style="font-weight: bold; width: 26px;" />
|
<input type="button" value="—" name="codeHR" title="{L_HOR_LINE}" style="font-weight: bold; width: 26px;" />
|
||||||
<input type="button" value="¶" name="codeBR" title="{L_NEW_LINE}" style="width: 26px;" />
|
<input type="button" value="¶" name="codeBR" title="{L_NEW_LINE}" style="width: 26px;" />
|
||||||
<input type="button" value="{L_SPOILER}" name="codeSpoiler" title="{L_SPOILER}" style="width: 65px;" />
|
<input type="button" value="{L_SPOILER}" name="codeSpoiler" title="{L_SPOILER}" style="width: 65px;" />
|
||||||
|
@ -87,8 +89,6 @@ ajax.callback.posts = function(data) {
|
||||||
<input type="button" value="i" name="codeI" title="{L_ITALIC}" style="width: 25px; font-style: italic;" />
|
<input type="button" value="i" name="codeI" title="{L_ITALIC}" style="width: 25px; font-style: italic;" />
|
||||||
<input type="button" value="u" name="codeU" title="{L_UNDERLINE}" style="width: 25px; text-decoration: underline;" />
|
<input type="button" value="u" name="codeU" title="{L_UNDERLINE}" style="width: 25px; text-decoration: underline;" />
|
||||||
<input type="button" value="s" name="codeS" title="{L_STRIKEOUT}" style="width: 25px; text-decoration: line-through;" />
|
<input type="button" value="s" name="codeS" title="{L_STRIKEOUT}" style="width: 25px; text-decoration: line-through;" />
|
||||||
<input type="button" value="sup" name="codeSup" title="{L_SUPERSCRIPT}" />
|
|
||||||
<input type="button" value="sub" name="codeSub" title="{L_SUBSCRIPT}" />
|
|
||||||
<input type="button" value="{L_QUOTE}" name="codeQuote" title="{L_QUOTE_TITLE}" style="width: 57px;" />
|
<input type="button" value="{L_QUOTE}" name="codeQuote" title="{L_QUOTE_TITLE}" style="width: 57px;" />
|
||||||
<input type="button" value="Img" name="codeImg" title="{L_IMG_TITLE}" style="width: 40px;" />
|
<input type="button" value="Img" name="codeImg" title="{L_IMG_TITLE}" style="width: 40px;" />
|
||||||
<input type="button" value="{L_URL}" name="codeUrl" title="{L_URL_TITLE}" style="width: 63px; text-decoration: underline;" />
|
<input type="button" value="{L_URL}" name="codeUrl" title="{L_URL_TITLE}" style="width: 63px; text-decoration: underline;" />
|
||||||
|
@ -180,36 +180,51 @@ function checkForm(form) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var bbcode = new BBCode("message");
|
var bbcode = new BBCode("message");
|
||||||
var ctrl = "ctrl";
|
var ctrl = "ctrl";
|
||||||
|
|
||||||
bbcode.addTag("codeB", "b", null, "B", ctrl);
|
bbcode.addTag("codeB", "b", null, "B", ctrl);
|
||||||
bbcode.addTag("codeI", "i", null, "I", ctrl);
|
bbcode.addTag("codeI", "i", null, "I", ctrl);
|
||||||
bbcode.addTag("codeU", "u", null, "U", ctrl);
|
bbcode.addTag("codeU", "u", null, "U", ctrl);
|
||||||
bbcode.addTag("codeS", "s", null, "S", ctrl);
|
bbcode.addTag("codeS", "s", null, "S", ctrl);
|
||||||
|
|
||||||
bbcode.addTag("codeSup", "sup", null, "", ctrl);
|
bbcode.addTag("codeQuote", "quote", null, "Q", ctrl);
|
||||||
bbcode.addTag("codeSub", "sub", null, "", ctrl);
|
bbcode.addTag("codeImg", "img", null, "R", ctrl);
|
||||||
|
bbcode.addTag("codeUrl", "url", "/url", "W", ctrl);
|
||||||
|
|
||||||
bbcode.addTag("codeQuote", "quote", null, "Q", ctrl);
|
bbcode.addTag("codeCode", "code", null, "K", ctrl);
|
||||||
bbcode.addTag("codeImg", "img", null, "R", ctrl);
|
bbcode.addTag("codeList", "list", null, "L", ctrl);
|
||||||
bbcode.addTag("codeUrl", "url", "/url", "W", ctrl);
|
bbcode.addTag("codeOpt", "*", "", "0", ctrl);
|
||||||
|
|
||||||
bbcode.addTag("codeCode", "code", null, "K", ctrl);
|
|
||||||
bbcode.addTag("codeList", "list", null, "L", ctrl);
|
|
||||||
bbcode.addTag("codeOpt", "*", "", "0", ctrl);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- IF QUICK_REPLY -->
|
<!-- IF QUICK_REPLY -->
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
bbcode.addTag("codeHR", "hr", "", "8", ctrl);
|
bbcode.addTag("codeHR", "hr", "", "8", ctrl);
|
||||||
bbcode.addTag("codeBR", "br", "", "", ctrl);
|
bbcode.addTag("codeBR", "br", "", "", ctrl);
|
||||||
bbcode.addTag("codeSpoiler", "spoiler", null, "", ctrl);
|
bbcode.addTag("codeSpoiler", "spoiler", null, "", ctrl);
|
||||||
|
bbcode.addTag("codeSup", "sup", null, "", ctrl);
|
||||||
|
bbcode.addTag("codeSub", "sub", null, "", ctrl);
|
||||||
|
|
||||||
bbcode.addTag("fontFace", function(e) { var v=e.value; e.selectedIndex=0; return "font=\""+v+"\"" }, "/font");
|
bbcode.addTag("fontFace", function (e) {
|
||||||
bbcode.addTag("codeColor", function(e) { var v=e.value; e.selectedIndex=0; return "color="+v }, "/color");
|
var v = e.value;
|
||||||
bbcode.addTag("codeSize", function(e) { var v=e.value; e.selectedIndex=0; return "size="+v }, "/size");
|
e.selectedIndex = 0;
|
||||||
bbcode.addTag("codeAlign", function(e) { var v=e.value; e.selectedIndex=0; return "align="+v }, "/align");
|
return "font=\"" + v + "\""
|
||||||
|
}, "/font");
|
||||||
|
bbcode.addTag("codeColor", function (e) {
|
||||||
|
var v = e.value;
|
||||||
|
e.selectedIndex = 0;
|
||||||
|
return "color=" + v
|
||||||
|
}, "/color");
|
||||||
|
bbcode.addTag("codeSize", function (e) {
|
||||||
|
var v = e.value;
|
||||||
|
e.selectedIndex = 0;
|
||||||
|
return "size=" + v
|
||||||
|
}, "/size");
|
||||||
|
bbcode.addTag("codeAlign", function (e) {
|
||||||
|
var v = e.value;
|
||||||
|
e.selectedIndex = 0;
|
||||||
|
return "align=" + v
|
||||||
|
}, "/align");
|
||||||
</script>
|
</script>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue