Sha256: b30d4a6dc9efa3cc0a2b00b5b1ae6dada2308bedf27a684e8c97058e97f7745c
Contents?: true
Size: 423 Bytes
Versions: 21
Compression:
Stored size: 423 Bytes
Contents
module TextEditorHelpers # Basecamp trix uses hidden input to populate its editor def fill_in_trix_editor(id, value) find(:xpath, "//*[@id='#{id}']", visible: false).set(value) end # A simplified version of the helper, requires JavaScript, and will end up # having <div>value</div> in the trix-saved content, but that is normal def fill_trix_editor(with:) find("trix-editor").click.set(with) end end
Version data entries
21 entries across 21 versions & 1 rubygems