浏览代码

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

Fix slide notes printing
Hakim El Hattab 5 年之前
父节点
当前提交
8680fb3804
共有 4 个文件被更改,包括 4 次插入4 次删除
  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

文件差异内容过多而无法显示
+ 1 - 1
dist/reveal.esm.js


文件差异内容过多而无法显示
+ 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;

部分文件因为文件数量过多而无法显示