Skip to content
Snippets Groups Projects
Commit 71575dd6 authored by rhenck's avatar rhenck
Browse files

[editor] Fix minor issues in TextEditor extensions

- Give proper name
- Fix variable names
- Fix deprecated methods
parent c04e7014
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@ declare module '@tiptap/core' {
}
export const BulletListExtension = BulletList.extend({
name: 'BulletListExtension',
addAttributes() {
return {
listStyle: {
......
......@@ -10,6 +10,8 @@ declare module '@tiptap/core' {
}
export const FontSizeExtension = TextStyle.extend({
name: 'FontSizeExtension',
addAttributes() {
return {
fontSize: {
......
......@@ -13,8 +13,10 @@ declare module '@tiptap/core' {
export const HangingIndent = Extension.create({
name: 'hangingIndent',
defaultOptions: {
types: ['paragraph']
addOptions() {
return {
types: ['paragraph']
};
},
addGlobalAttributes() {
......
......@@ -19,10 +19,12 @@ declare module '@tiptap/core' {
export const Indent = Extension.create<IndentOptions>({
name: 'indent',
defaultOptions: {
types: ['listItem', 'paragraph'],
minLevel: 0,
maxLevel: 8
addOptions() {
return {
types: ['listItem', 'paragraph'],
minLevel: 0,
maxLevel: 8
};
},
addGlobalAttributes() {
......
......@@ -11,6 +11,8 @@ declare module '@tiptap/core' {
}
export const OrderedListExtension = OrderedList.extend({
name: 'OrderedListExtension',
addAttributes() {
return {
listStyle: {
......
......@@ -10,7 +10,7 @@ declare module '@tiptap/core' {
}
}
export const paragraphExtension = Paragraph.extend({
export const ParagraphExtension = Paragraph.extend({
addAttributes() {
return {
margin: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment