Browse Source

Add BBCode editor toolbar

undefined
spaghetti 7 years ago
committed by Tomochin
parent
commit
ef8b4866ba
2 changed files with 23 additions and 2 deletions
  1. +1
    -1
      design/views/generic/textarea/textarea.phtml
  2. +22
    -1
      static/styles/global.css

+ 1
- 1
design/views/generic/textarea/textarea.phtml View File

@@ -1,4 +1,4 @@

<div id="textarea_wrap_<?=$NID?>" class="field_div textarea_wrap">
<textarea name="<?=$Name?>" id="<?=$ID?>" cols="<?=$Cols?>" rows="<?=$Rows?>" <?=$Attributes?>><?=$Value?></textarea>
<textarea name="<?=$Name?>" id="<?=$ID?>" class="bbcode_editor" cols="<?=$Cols?>" rows="<?=$Rows?>" <?=$Attributes?>><?=$Value?></textarea>
</div>

+ 22
- 1
static/styles/global.css View File

@@ -217,6 +217,7 @@ pre {

form textarea, form input {
max-width: 100%;
box-sizing: border-box;
}

textarea {
@@ -268,7 +269,27 @@ div#AddArtists a {
}

#forums #quickpost {
width: 95%
width: 95%;
}

.bbcode_bar {
list-style: none;
margin: 0px 0px -4px;
box-sizing: border-box;
text-align: center;
display: inline-block;
}
.bbcode_bar > li {
display: inline-block;
margin: 0px;
}
.bbcode_bar > li > a {
display: inline-block;
height: 26px;
line-height: 26px;
cursor: pointer;
min-width: 20px;
margin: 0px 4px;
}

td.label, .valign_top {


Loading…
Cancel
Save