@@ -538,12 +538,11 @@ function($, _, Backbone, gettext, BasePage,
538538 if ( ! options || options . view !== 'visibility_view' ) {
539539 const primaryHeader = $ ( event . target ) . closest ( '.xblock-header-primary, .nav-actions' ) ;
540540
541- var useNewVideoEditor = primaryHeader . attr ( 'use-new-editor-video' ) ,
542- blockType = primaryHeader . attr ( 'data-block-type' ) ,
541+ var blockType = primaryHeader . attr ( 'data-block-type' ) ,
543542 useNewPdfEditor = primaryHeader . attr ( 'use-new-editor-pdf' ) ;
544543
545544 if ( ( blockType === 'html' )
546- || ( useNewVideoEditor === 'True' && blockType === 'video' )
545+ || ( blockType === 'video' )
547546 || ( blockType === 'problem' )
548547 || ( useNewPdfEditor === 'True' && blockType === 'pdf' )
549548 ) {
@@ -1204,8 +1203,7 @@ function($, _, Backbone, gettext, BasePage,
12041203 } ,
12051204
12061205 onNewXBlock : function ( xblockElement , scrollOffset , is_duplicate , data ) {
1207- var useNewVideoEditor = this . $ ( '.xblock-header-primary' ) . attr ( 'use-new-editor-video' ) ,
1208- useVideoGalleryFlow = this . $ ( '.xblock-header-primary' ) . attr ( "use-video-gallery-flow" ) ;
1206+ var useVideoGalleryFlow = this . $ ( '.xblock-header-primary' ) . attr ( "use-video-gallery-flow" ) ;
12091207
12101208 // find the block type in the locator if availible
12111209 if ( data . hasOwnProperty ( 'locator' ) ) {
@@ -1214,7 +1212,7 @@ function($, _, Backbone, gettext, BasePage,
12141212 }
12151213 // open mfe editors for new blocks only and not for content imported from libraries
12161214 if ( ! data . hasOwnProperty ( 'upstreamRef' ) && ( blockType . includes ( 'html' )
1217- || ( useNewVideoEditor === 'True' && blockType . includes ( 'video' ) )
1215+ || ( blockType . includes ( 'video' ) )
12181216 || ( blockType . includes ( 'problem' ) ) )
12191217 ) {
12201218 if ( this . options . isIframeEmbed && ( this . isSplitTestContentPage || this . isVerticalContentPage ) ) {
0 commit comments