Added docs for .editor

Added jasny/forms-editor.less to jasny/bootstrap.less
This commit is contained in:
Arnold Daniels
2012-07-16 20:48:59 +02:00
parent e4ac9f2bb3
commit bcfd7c3801
3 changed files with 13 additions and 0 deletions

View File

@@ -1121,6 +1121,10 @@ on multiple lines
<hr>
<h4>{{_i}}Form help text{{/i}}</h4>
<p>{{_i}}To add help text for your form inputs, include inline help text with <code>&lt;span class="help-inline"&gt;</code> or a help text block with <code>&lt;p class="help-block"&gt;</code> after the input element.{{/i}}</p>
<hr>
<h4>Editor textarea</h4>
<p>Add <code>.editor</code> to any textarea or <code>.uneditable-textarea</code> to create a larger field for content editing.</p>
<p>Also add <code>.editor-html</code>, if the textarea will be replaced by e.g. CKEditor or TinyMCE.</p>
</div>
<div class="span8">
<form class="form-horizontal">
@@ -1251,6 +1255,12 @@ on multiple lines
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">Editor textarea</label>
<div class="controls">
<textarea class="editor"></textarea>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
<button class="btn">{{_i}}Cancel{{/i}}</button>

View File

@@ -54,6 +54,7 @@
<div class="span3">
<h3><a href="./base-css.html#forms">{{_i}}Form elements{{/i}}</a></h3>
<p>{{_i}}Go beyond uneditable input and create a full uneditable form, with disabled and uneditable elements.{{/i}}</p>
<p>{{_i}}Add .editor to a textarea to create a larger field for content editing.{{/i}}</p>
</div>
</div><!--/row-->
</div>

View File

@@ -14,3 +14,5 @@
// Base CSS
@import "forms-uneditable.less";
@import "forms-editor.less";