mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: get element content from Course
This commit is contained in:
parent
4e966d9126
commit
57e64a2b74
7 changed files with 134 additions and 17 deletions
|
|
@ -27,7 +27,7 @@ function Editor(props: EditorProps) {
|
|||
|
||||
async function setContent(content: any) {
|
||||
let element = props.element;
|
||||
element.content = content.content;
|
||||
element.content = content;
|
||||
const res = await updateElement(element, element.element_id);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue