mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Document webContents.showDefinitionForSelection
This commit is contained in:
@@ -885,7 +885,7 @@ The `flags` is an array that can include following `String`s:
|
||||
|
||||
### `win.showDefinitionForSelection()` _OS X_
|
||||
|
||||
Shows pop-up dictionary that searches the selected word on the page.
|
||||
Same as `webContents.showDefinitionForSelection()`.
|
||||
|
||||
### `win.setIcon(icon)` _Windows_ _Linux_
|
||||
|
||||
|
||||
@@ -957,6 +957,10 @@ win.webContents.on('did-finish-load', () => {
|
||||
});
|
||||
```
|
||||
|
||||
### `webContents.showDefinitionForSelection()` _OS X_
|
||||
|
||||
Shows pop-up dictionary that searches the selected word on the page.
|
||||
|
||||
## Instance Properties
|
||||
|
||||
`WebContents` objects also have the following properties:
|
||||
|
||||
Reference in New Issue
Block a user