浏览代码

Docs: add note on how to enable/disable preview links individually.

Closes #2005.
Benjamin Tan 6 年之前
父节点
当前提交
7991693bde
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      README.md
  2. 2 0
      js/reveal.js

+ 2 - 0
README.md

@@ -270,6 +270,8 @@ Reveal.initialize({
 	hideAddressBar: true,
 
 	// Opens links in an iframe preview overlay
+	// Add `data-preview-link` and `data-preview-link="false"` to customise each link
+	// individually
 	previewLinks: false,
 
 	// Transition style

+ 2 - 0
js/reveal.js

@@ -145,6 +145,8 @@
 			hideAddressBar: true,
 
 			// Opens links in an iframe preview overlay
+			// Add `data-preview-link` and `data-preview-link="false"` to customise each link
+			// individually
 			previewLinks: false,
 
 			// Exposes the reveal.js API through window.postMessage