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

Commit f44053d

Browse files
committed
update doc for FAQ
1 parent 63398a5 commit f44053d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

doc/mkdp.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ close preview window:
6565
nmap <silent> <F9> <Plug>StopMarkdownPreview " for normal mode
6666
imap <silent> <F9> <Plug>StopMarkdownPreview " for insert mode
6767

68+
FAQ:
69+
70+
Q: the firefox preview window didn't close when leave the markdown file in vim
71+
72+
A: if you want the plugin auto close the preview window on firefox, you have to do some config:
73+
74+
1. open firefox
75+
2. type `about:config` in the address bar and press Enter key
76+
3. search `dom.allow_scripts_to_close_windows` item and set the value to `true`
77+
78+
> you have to know what will happend when you do the config above
79+
6880
================================================================================
6981

7082
说明 *mkdp-introduction-zh*
@@ -122,3 +134,15 @@ close preview window:
122134
imap <silent> <F8> <Plug>MarkdownPreview " 插入模式
123135
nmap <silent> <F9> <Plug>StopMarkdownPreview " 普通模式
124136
imap <silent> <F9> <Plug>StopMarkdownPreview " 插入模式
137+
138+
FAQ:
139+
140+
Q: 在火狐浏览器中,预览页面不能自动关闭
141+
142+
A: 如果需要在火狐浏览器中启用自动关闭预览窗口,需要相关设置:
143+
144+
1. 打开火狐浏览器
145+
2. 地址栏敲入 `about:config` 然后回车
146+
3. 搜索 `dom.allow_scripts_to_close_windows` 选项,并设置 value 为 `true`
147+
148+
> 如果你打算设置上面的配置,你应该知道该配置会产生什么影响

0 commit comments

Comments
 (0)