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>
|
||||
@@ -22,7 +22,8 @@ Or alias a URL: [url=http://www.google.com]Google[/url]
|
||||
|
||||
A [[wiki link]] (underscores are not needed).
|
||||
|
||||
A {{post link}}. Alternatively, post #1234 (also works with forum posts, comments and pools).
|
||||
A {{post link}}. Alternatively, post #1234.
|
||||
Also works with forum posts, comments and pools.
|
||||
|
||||
<%= link_to "Read more", wiki_pages_path(:title => "help:dtext") %>.
|
||||
</pre>
|
||||
|
||||
Reference in New Issue
Block a user