Commit 2211291a authored by fv3rdugo's avatar fv3rdugo
Browse files

[#562] Add rich text editing in description tab

Add javascript in scripts.html.ep
Add double equal (<% ==) so the Perl expression replaces with the result, html tag instead of plain text. (in templates / main / run.html.ep)
parent 422abece
......@@ -30,3 +30,9 @@
document.getElementById("spinn"+iD).style.display="none";
}
</script>
<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script>
<script type="text/javascript">
//<![CDATA[
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
//]]>
</script>
......@@ -13,7 +13,7 @@
% if ($description) {
<div class="panel-body">
<div class="alert alert-info">
<%= $description %>
<%== $description %>
</div>
</div>
% }
......
......@@ -7,10 +7,10 @@
<div class="form-group">
<form class="form-inline" action="<%= $action %>" accept-charset="ISO-8859-1" method="post">
<div class="row">
<div class="col-md-6">
<div class="col-md-12">
<label for="description">This information will be available to the users.</label>
<br/>
<textarea name="description" class="col-md-12" rows="6" placeholder="Description"><%= $domain->description %></textarea>
<textarea name="description" style="width: 100%;" placeholder="Description"><%= $domain->description %></textarea>
</div>
</div>
<div class="row">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment