unified js for dtext previews
This commit is contained in:
16
app/views/dtext/_form.html.erb
Normal file
16
app/views/dtext/_form.html.erb
Normal file
@@ -0,0 +1,16 @@
|
||||
<!--
|
||||
- name
|
||||
- input_id
|
||||
- input_name
|
||||
- preview_id
|
||||
- value
|
||||
-->
|
||||
<div class="input text optional">
|
||||
<label class="text optional" for="<%= input_id %>"><%= name %></label>
|
||||
|
||||
<div class="dtext-previewable">
|
||||
<textarea id="<%= input_id %>" class="text optional" rows="20" name="<%= input_name %>" cols="30"><%= value %></textarea>
|
||||
<div id="<%= preview_id %>" class="dtext-preview"></div>
|
||||
</div>
|
||||
<span class="hint">All text is formatted using <%= link_to "DText", wiki_pages_path(:title => "help:dtext") %></span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user