browser-monkey icon indicating copy to clipboard operation
browser-monkey copied to clipboard

Cannot type into contenteditable

Open AlecRust opened this issue 8 years ago • 3 comments

browser-monkey can typeIn() into:

  • <input class="element"></input>
  • <input class="element" type="text"></input>
  • <input class="element" type="email"></input>
  • <input class="element" type="password"></input>
  • <input class="element" type="search"></input>
  • <input class="element" type="tel"></input>
  • <input class="element" type="url"></input>
  • <input class="element" type="number"></input>
  • <textarea class="element"></textara>

But can't typeIn() into:

  • <div class="element" contenteditable="true"></div>

Which would be nice. It's not technically a form input however, so val() can't be used for fetching the value etc.

Any thoughts on working around this? Do people think this should be added?

AlecRust avatar Jan 26 '17 14:01 AlecRust

it makes some sense to support contenteditable, but would you expect to type HTML or text?

refractalize avatar Feb 12 '17 20:02 refractalize

@AlecRust what do you think? typeIn text or html? or can you be in different modes? (not sure how content editable works)

dereke avatar Apr 03 '17 21:04 dereke

I guess HTML ideally since contenteditable doesn't change it from being HTML, it just makes the text of that HTML editable by the browser.

AlecRust avatar Apr 04 '17 21:04 AlecRust