fix: Schedule and Details page was not loading (#1527)

The page relied on obscure behavior of setting "isLibrary" to disable image uploads even in a course context. This commit refactors to use an explicit enableImageUpload prop in TinyMceWidget.
This commit is contained in:
Diana Olarte
2024-11-23 07:10:11 +11:00
committed by GitHub
parent bc8d59b0eb
commit 31f59d6bca
9 changed files with 23 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ export const WysiwygEditor = ({
initializeEditor={() => ({})}
learningContextId={courseId}
images={{}}
isLibrary
enableImageUpload={false}
onEditorChange={() => ({})}
/>
);