@@ -491,14 +491,14 @@ function($, _, Backbone, gettext, BasePage,
491491 if ( $target . closest ( 'button, a, input, label, .actions-list' ) . length ) {
492492 return ;
493493 }
494-
494+
495495 var $wrapper = $target . closest ( '.studio-xblock-wrapper' ) ;
496496
497497 // Deselect all other xblocks
498498 this . $ ( '.studio-xblock-wrapper.is-selected' ) . not ( $wrapper ) . removeClass ( 'is-selected' ) ;
499499
500500 $wrapper . toggleClass ( 'is-selected' ) ;
501-
501+
502502 if ( this . options . isIframeEmbed ) {
503503 const contentId = this . findXBlockElement ( event . target ) . data ( 'locator' ) ;
504504 this . postMessageToParent ( {
@@ -539,11 +539,13 @@ function($, _, Backbone, gettext, BasePage,
539539 const primaryHeader = $ ( event . target ) . closest ( '.xblock-header-primary, .nav-actions' ) ;
540540
541541 var useNewVideoEditor = primaryHeader . attr ( 'use-new-editor-video' ) ,
542- blockType = primaryHeader . attr ( 'data-block-type' ) ;
542+ blockType = primaryHeader . attr ( 'data-block-type' ) ,
543+ useNewPdfEditor = primaryHeader . attr ( 'use-new-editor-pdf' ) ;
543544
544545 if ( ( blockType === 'html' )
545546 || ( useNewVideoEditor === 'True' && blockType === 'video' )
546547 || ( blockType === 'problem' )
548+ || ( useNewPdfEditor === 'True' && blockType === 'pdf' )
547549 ) {
548550 var destinationUrl = primaryHeader . attr ( 'authoring_MFE_base_url' )
549551 + '/' + blockType
0 commit comments