Browse Source

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

Closes #2005.
Benjamin Tan 6 năm trước cách đây
mục cha
commit
7991693bde
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  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