Parcourir la source

Merge pull request #2671 from s-l-lee/fix-notes-printing

Fix slide notes printing
Hakim El Hattab il y a 5 ans
Parent
commit
8680fb3804
4 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      dist/reveal.esm.js
  2. 1 1
      dist/reveal.js
  3. 1 1
      js/controllers/notes.js
  4. 1 1
      js/controllers/print.js

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
dist/reveal.esm.js


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
dist/reveal.js


+ 1 - 1
js/controllers/notes.js

@@ -54,7 +54,7 @@ export default class Notes {
 	 */
 	updateVisibility() {
 
-		if( this.Reveal.getConfig().showNotes && this.hasNotes() ) {
+		if( this.Reveal.getConfig().showNotes && this.hasNotes() && !this.Reveal.print.isPrintingPDF() ) {
 			this.Reveal.getRevealElement().classList.add( 'show-notes' );
 		}
 		else {

+ 1 - 1
js/controllers/print.js

@@ -91,7 +91,7 @@ export default class Print {
 				if( config.showNotes ) {
 
 					// Are there notes for this slide?
-					let notes = getSlideNotes( slide );
+					let notes = this.Reveal.getSlideNotes( slide );
 					if( notes ) {
 
 						let notesSpacing = 8;

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff