Selaa lähdekoodia

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

Closes #2005.
Benjamin Tan 6 vuotta sitten
vanhempi
commit
7991693bde
2 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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