Displaying 2 results from an estimated 2 matches for "anno_a".
Did you mean:
anno_1
2013 Jan 27
2
Help displaying text
...d horizontal size
on the page. When it is displayed on the page now, rather than
interpreting the HTML, it is output into the text field as a string with
all HTML tags showing. What am I doing wrong??
<div id = "A">
<%= text_area_tag id="cka",(@formatted_question[:anno_a]) %>
</div>
Any help would be greatly appreciated
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an em...
2013 Jan 23
0
wysihtml5 for rails
...portantly need to set it to a read only mode
on a particular page so users can click on URL''s in the WYSIWYG text
area.
My current setup...
gem ''wysihtml5-rails'' in gemfile
In "show'' page...
<%= text_area_tag id="ck_a", @formatted_question[:anno_a],
:class=>''wysihtml5'' %>
<script type="text/javascript">
$(''.wysihtml5'').each(function(i, elem) {
$(elem).wysihtml5();
});
</script>
Also, not sure why but only works when <script
type="...