docs: The editing commands

This commit is contained in:
Cheng Zhao 2015-01-19 12:30:28 -08:00
parent ff856e679d
commit 3da347a783
2 changed files with 89 additions and 1 deletions

View file

@ -743,7 +743,51 @@ Injects CSS into this page.
* `code` String
Evaluate `code` in page.
Evaluates `code` in page.
### WebContents.undo()
Executes editing command `undo` in page.
### WebContents.redo()
Executes editing command `redo` in page.
### WebContents.cut()
Executes editing command `cut` in page.
### WebContents.copy()
Executes editing command `copy` in page.
### WebContents.paste()
Executes editing command `paste` in page.
### WebContents.delete()
Executes editing command `delete` in page.
### WebContents.selectAll()
Executes editing command `selectAll` in page.
### WebContents.unselect()
Executes editing command `unselect` in page.
### WebContents.replace(text)
* `text` String
Executes editing command `replace` in page.
### WebContents.replaceMisspelling(text)
* `text` String
Executes editing command `replaceMisspelling` in page.
### WebContents.send(channel[, args...])

View file

@ -219,6 +219,50 @@ Closes the devtools window of guest page.
Returns whether guest page has a devtools window attached.
### `<webview>`.undo()
Executes editing command `undo` in page.
### `<webview>`.redo()
Executes editing command `redo` in page.
### `<webview>`.cut()
Executes editing command `cut` in page.
### `<webview>`.copy()
Executes editing command `copy` in page.
### `<webview>`.paste()
Executes editing command `paste` in page.
### `<webview>`.delete()
Executes editing command `delete` in page.
### `<webview>`.selectAll()
Executes editing command `selectAll` in page.
### `<webview>`.unselect()
Executes editing command `unselect` in page.
### `<webview>`.replace(text)
* `text` String
Executes editing command `replace` in page.
### `<webview>`.replaceMisspelling(text)
* `text` String
Executes editing command `replaceMisspelling` in page.
### `<webview>`.send(channel[, args...])
* `channel` String