Add insertText to WebContents

This commit is contained in:
Cheng Zhao 2016-01-13 11:55:49 +08:00
parent 5567baf335
commit 5b7d1a9890
6 changed files with 44 additions and 2 deletions

View file

@ -472,6 +472,12 @@ Executes the editing command `replace` in web page.
Executes the editing command `replaceMisspelling` in web page.
### `webContents.insertText(text)`
* `text` String
Inserts `text` to the focused element.
### `webContents.findInPage(text[, options])`
* `text` String - Content to be searched, must not be empty.

View file

@ -94,6 +94,6 @@ allows registering ServiceWorker and supports fetch API.
* `text` String
* Inserts `text` to the focused element.
Inserts `text` to the focused element.
[spellchecker]: https://github.com/atom/node-spellchecker

View file

@ -352,6 +352,12 @@ Executes editing command `replace` in page.
Executes editing command `replaceMisspelling` in page.
### `<webview>.insertText(text)`
* `text` String
Inserts `text` to the focused element.
### `<webview>.findInPage(text[, options])`
* `text` String - Content to be searched, must not be empty.