Class: TextileEditorInitialize
- Inherits:
-
Object
- Object
- TextileEditorInitialize
- Defined in:
- lib/helpers/textile_editor_initialize.rb
Class Method Summary collapse
Class Method Details
.textile_editor_initialize ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/helpers/textile_editor_initialize.rb', line 4 def textile_editor_initialize output = [] output << '<script type="text/javascript">' output << %{$(document).ready(function() \{} output << '/* <![CDATA[ */' output << %{$.each($('textarea.textile_editor'),function(i,el){ TextileEditor.initialize($(el).attr('id')); });} output << '/* ]]> */' output << '});' output << '</script>' output.join("\n").html_safe end |