mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: use editable workaround for blocks
This commit is contained in:
parent
a05b298c91
commit
21f1f2fd94
10 changed files with 36 additions and 14 deletions
|
|
@ -7,6 +7,7 @@ import { getActivityWithAuthHeader } from "@services/courses/activities";
|
|||
import { getAccessTokenFromRefreshTokenCookie, getNewAccessTokenUsingRefreshTokenServer } from "@services/auth/auth";
|
||||
import { getOrganizationContextInfo, getOrganizationContextInfoWithId } from "@services/organizations/orgs";
|
||||
import SessionProvider from "@components/Contexts/SessionContext";
|
||||
import EditorOptionsProvider from "@components/Contexts/Editor/EditorContext";
|
||||
|
||||
type MetadataProps = {
|
||||
params: { orgslug: string, courseid: string, activityid: string };
|
||||
|
|
@ -38,11 +39,11 @@ const EditActivity = async (params: any) => {
|
|||
console.log('courseInfo', courseInfo)
|
||||
|
||||
return (
|
||||
<div>
|
||||
<EditorOptionsProvider options={{ isEditable: true }}>
|
||||
<SessionProvider>
|
||||
<EditorWrapper org={org} course={courseInfo} activity={activity} content={activity.content}></EditorWrapper>
|
||||
</SessionProvider>
|
||||
</div>
|
||||
</EditorOptionsProvider>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue