Method: Page#type_code_mirror
- Defined in:
- lib/page.rb
#type_code_mirror(id, text) ⇒ Object
deal with code mirror text areas
30 31 32 33 |
# File 'lib/page.rb', line 30 def type_code_mirror(id, text) execute_script("$('##{id}').val('#{text}');") execute_script("$('##{id}').keyup();") end |