]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: "plugins" attribute of <webview>
authorCheng Zhao <zcbenz@gmail.com>
Wed, 5 Nov 2014 07:02:37 +0000 (15:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 5 Nov 2014 07:02:37 +0000 (15:02 +0800)
docs/api/web-view-tag.md

index d0b574539eb15896a7de7bca00452430bc40216f..728fbc2d5d9a77559d289e39c34c166080baa808 100644 (file)
@@ -50,7 +50,7 @@ and displays a "loading..." message during the load time:
 ### src
 
 ```html
-<webview src="http://www.google.com/"></webview>
+<webview src="https://www.github.com/"></webview>
 ```
 
 Returns the visible URL. Writing to this attribute initiates top-level
@@ -64,7 +64,7 @@ The `src` attribute can also accept data URLs, such as
 ### autosize
 
 ```html
-<webview src="http://www.google.com/" autosize="on" minwidth="576" minheight="432"></webview>
+<webview src="https://www.github.com/" autosize="on" minwidth="576" minheight="432"></webview>
 ```
 
 If "on", the `webview` will container will automatically resize within the
@@ -82,6 +82,14 @@ than the minimum values or greater than the maximum.
 If "on", the guest page in `webview` will have node integration and can use node
 APIs like `require` and `process` to access low level system resources.
 
+### plugins
+
+```html
+<webview src="https://www.github.com/" plugins></webview>
+```
+
+If "on", the guest page in `webview` will be able to use browser plugins.
+
 ## Methods
 
 ### `<webview>`.getUrl()