fix: lesson editor fixes

This commit is contained in:
Jannat Patel
2025-06-17 16:38:42 +05:30
parent 6a68ae989e
commit 023c8ac13e
7 changed files with 126 additions and 63 deletions

View File

@@ -135,6 +135,17 @@ export function getEditorTools() {
placeholder: 'Header',
},
},
list: {
class: NestedList,
inlineToolbar: true,
config: {
defaultStyle: 'ordered',
},
},
table: {
class: Table,
inlineToolbar: true,
},
quiz: Quiz,
assignment: Assignment,
upload: Upload,
@@ -143,10 +154,6 @@ export function getEditorTools() {
inlineToolbar: true,
},
image: SimpleImage,
table: {
class: Table,
inlineToolbar: true,
},
paragraph: {
class: Paragraph,
inlineToolbar: true,
@@ -160,13 +167,6 @@ export function getEditorTools() {
useDefaultTheme: 'dark',
},
},
list: {
class: NestedList,
inlineToolbar: true,
config: {
defaultStyle: 'ordered',
},
},
inlineCode: {
class: InlineCode,
shortcut: 'CMD+SHIFT+M',