unified js for dtext previews

This commit is contained in:
albert
2011-10-20 18:50:16 -04:00
parent f630365c3b
commit e8808987d5
21 changed files with 101 additions and 190 deletions

View 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>

View File

@@ -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>