mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
added Ordered List
added Ordered List
This commit is contained in:
parent
c7061a26fa
commit
0bd6c06987
3 changed files with 10 additions and 2 deletions
|
|
@ -23,6 +23,9 @@ import QuizBlock from "./Extensions/Quiz/QuizBlock";
|
|||
import ToolTip from "@components/StyledElements/Tooltip/Tooltip";
|
||||
import Link from "next/link";
|
||||
import { getCourseThumbnailMediaDirectory } from "@services/media/media";
|
||||
import { OrderedList } from "@tiptap/extension-ordered-list";
|
||||
import {ListItem} from '@tiptap/extension-list-item'
|
||||
|
||||
|
||||
interface Editor {
|
||||
content: string;
|
||||
|
|
@ -80,6 +83,8 @@ function Editor(props: Editor) {
|
|||
controls: true,
|
||||
modestBranding: true,
|
||||
}),
|
||||
OrderedList.configure(),
|
||||
|
||||
// Register the document with Tiptap
|
||||
// Collaboration.configure({
|
||||
// document: props.ydoc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue