File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const AddComponent = ({
44
44
const [ selectedComponents , setSelectedComponents ] = useState ( [ ] ) ;
45
45
const [ usageId , setUsageId ] = useState ( null ) ;
46
46
const { sendMessageToIframe } = useIframe ( ) ;
47
- const { useVideoGalleryFlow } = useSelector ( getWaffleFlags ) ;
47
+ const { useVideoGalleryFlow, useReactMarkdownEditor } = useSelector ( getWaffleFlags ) ;
48
48
49
49
const receiveMessage = useCallback ( ( { data : { type, payload } } ) => {
50
50
if ( type === messageTypes . showMultipleComponentPicker ) {
@@ -264,6 +264,7 @@ const AddComponent = ({
264
264
courseId = { courseId }
265
265
blockType = { blockType }
266
266
blockId = { newBlockId }
267
+ isMarkdownEditorEnabledForCourse = { useReactMarkdownEditor }
267
268
studioEndpointUrl = { getConfig ( ) . STUDIO_BASE_URL }
268
269
lmsEndpointUrl = { getConfig ( ) . LMS_BASE_URL }
269
270
onClose = { closeXBlockEditorModal }
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const XBlockContainerIframe: FC<XBlockContainerIframeProps> = ({
49
49
const [ isVideoSelectorModalOpen , showVideoSelectorModal , closeVideoSelectorModal ] = useToggle ( ) ;
50
50
const [ isXBlockEditorModalOpen , showXBlockEditorModal , closeXBlockEditorModal ] = useToggle ( ) ;
51
51
const [ blockType , setBlockType ] = useState < string > ( '' ) ;
52
- const { useVideoGalleryFlow } = useSelector ( getWaffleFlags ) ;
52
+ const { useVideoGalleryFlow, useReactMarkdownEditor } = useSelector ( getWaffleFlags ) ;
53
53
const [ newBlockId , setNewBlockId ] = useState < string > ( '' ) ;
54
54
const [ accessManagedXBlockData , setAccessManagedXBlockData ] = useState < AccessManagedXBlockDataTypes | { } > ( { } ) ;
55
55
const [ iframeOffset , setIframeOffset ] = useState ( 0 ) ;
@@ -230,6 +230,7 @@ const XBlockContainerIframe: FC<XBlockContainerIframeProps> = ({
230
230
courseId = { courseId }
231
231
blockType = { blockType }
232
232
blockId = { newBlockId }
233
+ isMarkdownEditorEnabledForCourse = { useReactMarkdownEditor }
233
234
studioEndpointUrl = { getConfig ( ) . STUDIO_BASE_URL }
234
235
lmsEndpointUrl = { getConfig ( ) . LMS_BASE_URL }
235
236
onClose = { closeXBlockEditorModal }
You can’t perform that action at this time.
0 commit comments