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.4.6 spec/support/wysihtml5_helper.rb
message_train-0.4.5 spec/support/wysihtml5_helper.rb
message_train-0.4.4 spec/support/wysihtml5_helper.rb
message_train-0.4.3 spec/support/wysihtml5_helper.rb
message_train-0.4.2 spec/support/wysihtml5_helper.rb
message_train-0.4.1 spec/support/wysihtml5_helper.rb
message_train-0.4.0 spec/support/wysihtml5_helper.rb
message_train-0.3.1 spec/support/wysihtml5_helper.rb
message_train-0.3.0 spec/support/wysihtml5_helper.rb
message_train-0.2.12 spec/support/wysihtml5_helper.rb
message_train-0.2.11 spec/support/wysihtml5_helper.rb
message_train-0.2.10 spec/support/wysihtml5_helper.rb
message_train-0.2.9 spec/support/wysihtml5_helper.rb
message_train-0.2.8 spec/support/wysihtml5_helper.rb
message_train-0.2.7 spec/support/wysihtml5_helper.rb
message_train-0.2.6 spec/support/wysihtml5_helper.rb
message_train-0.2.5 spec/support/wysihtml5_helper.rb
message_train-0.2.4 spec/support/wysihtml5_helper.rb
message_train-0.2.3 spec/support/wysihtml5_helper.rb
message_train-0.2.2 spec/support/wysihtml5_helper.rb