Browse Source

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

Closes #2005.
Benjamin Tan 6 years ago
parent
commit
7991693bde
2 changed files with 4 additions and 0 deletions
  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