Sha256: 6314184a99db5ae9e7423ea45b63fe35639737a81a9ef2a6d2e8940ab31e6405
Contents?: true
Size: 251 Bytes
Versions: 22
Compression:
Stored size: 251 Bytes
Contents
module Wysihtml5Helper def fill_in_html label, options page.execute_script <<-JAVASCRIPT var id = $("label:contains(#{label})").attr("for"); $("#" + id).data("wysihtml5").editor.setValue("#{options[:with]}"); JAVASCRIPT end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
message_train-0.2.1 | spec/support/wysihtml5_helper.rb |
message_train-0.2.0 | spec/support/wysihtml5_helper.rb |