Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 63398a5

Browse files
committed
update README for firefox to auto close preview window
1 parent e1e0138 commit 63398a5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ let g:mkdp_path_to_chrome = "/Applications/Google\\ Chrome.app/Contents/MacOS/Go
8888
```
8989
see issue[#1](https://github.com/iamcco/markdown-preview.vim/issues/1) for detail
9090

91+
### FAQ
92+
93+
Q: the firefox preview window didn't close when leave the markdown file in vim
94+
95+
A: if you want the plugin auto close the preview window on firefox, you have to do some config:
96+
97+
1. open firefox
98+
2. type `about:config` in the address bar and press Enter key
99+
3. search `dom.allow_scripts_to_close_windows` item and set the value to `true`
100+
101+
> you have to know what will happend when you do the config above
102+
91103
### Changelog
92104

93105
* 2016/05/18: support key mapping and new `g:mkdp_command_for_global` option item
@@ -174,6 +186,18 @@ let g:mkdp_path_to_chrome = "/Applications/Google\\ Chrome.app/Contents/MacOS/Go
174186
```
175187
详细可以查看 issue[#1](https://github.com/iamcco/markdown-preview.vim/issues/1)
176188

189+
### FAQ
190+
191+
Q: 在火狐浏览器中,预览页面不能自动关闭
192+
193+
A: 如果需要在火狐浏览器中启用自动关闭预览窗口,需要相关设置:
194+
195+
1. 打开火狐浏览器
196+
2. 地址栏敲入 `about:config` 然后回车
197+
3. 搜索 `dom.allow_scripts_to_close_windows` 选项,并设置 value 为 `true`
198+
199+
> 如果你打算设置上面的配置,你应该知道该配置会产生什么影响
200+
177201
### Changelog
178202

179203
* 2016/05/18: 支持按键绑定,并增加新的 `g:mkdp_command_for_global` 配置项

0 commit comments

Comments
 (0)