]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: The editing commands
authorCheng Zhao <zcbenz@gmail.com>
Mon, 19 Jan 2015 20:30:28 +0000 (12:30 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 19 Jan 2015 20:30:28 +0000 (12:30 -0800)
docs/api/browser-window.md
docs/api/web-view-tag.md

index 3a838a6cfebac9283a5032a44f2a3d5145413211..3525631b1d98a71b1acba6c6a44dedeecdfea2b0 100644 (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...])
 
index 459e734ca597d0a1bc411ef89fc05ccebfd5af0c..40ccf1f174a6e992dd267250674fa1d54bcc9a56 100644 (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