mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
Completed Ordered List Function
added Ordered List Function to Editor and Dynamic Canva.
This commit is contained in:
parent
0bd6c06987
commit
88d7d516e3
4 changed files with 21 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ import ImageBlock from "@components/Objects/Editor/Extensions/Image/ImageBlock";
|
|||
import VideoBlock from "@components/Objects/Editor/Extensions/Video/VideoBlock";
|
||||
import MathEquationBlock from "@components/Objects/Editor/Extensions/MathEquation/MathEquationBlock";
|
||||
import PDFBlock from "@components/Objects/Editor/Extensions/PDF/PDFBlock";
|
||||
import { OrderedList } from "@tiptap/extension-ordered-list";
|
||||
|
||||
interface Editor {
|
||||
content: string;
|
||||
|
|
@ -49,6 +50,9 @@ function Canva(props: Editor) {
|
|||
controls: true,
|
||||
modestBranding: true,
|
||||
}),
|
||||
|
||||
OrderedList.configure()
|
||||
|
||||
],
|
||||
|
||||
content: props.content,
|
||||
|
|
@ -101,6 +105,12 @@ h5 {
|
|||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding: 0 1rem;
|
||||
padding-left: 10px;
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
|
||||
&:focus {
|
||||
outline: none !important;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue