Parcourir la source

Expose preview management functions

Stéphane Este-Gracias il y a 4 ans
Parent
commit
2d050f83c1
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 3
      js/reveal.js

+ 4 - 3
js/reveal.js

@@ -2461,9 +2461,6 @@ export default function( revealElement, options ) {
 		// Randomizes the order of slides
 		shuffle,
 
-		// Opens a preview window for the target URL
-		showPreview,
-
 		// Returns an object with the available routes as booleans (left/right/top/bottom)
 		availableRoutes,
 
@@ -2503,6 +2500,10 @@ export default function( revealElement, options ) {
 		loadSlide: slideContent.load.bind( slideContent ),
 		unloadSlide: slideContent.unload.bind( slideContent ),
 
+		// Preview management
+		showPreview,
+		hidePreview: closeOverlay,
+
 		// Adds or removes all internal event listeners
 		addEventListeners,
 		removeEventListeners,