rename all extensions (drop suffix)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { setBlockType } from 'tiptap-commands'
|
||||
import { Node } from 'tiptap'
|
||||
|
||||
export default class ParagraphNode extends Node {
|
||||
export default class Paragraph extends Node {
|
||||
|
||||
get name() {
|
||||
return 'paragraph'
|
||||
|
||||
@@ -38,10 +38,10 @@
|
||||
import Icon from 'Components/Icon'
|
||||
import { Editor, EditorContent, MenuBar } from 'tiptap'
|
||||
import {
|
||||
HardBreakNode,
|
||||
CodeMark,
|
||||
HardBreak,
|
||||
Code,
|
||||
} from 'tiptap-extensions'
|
||||
import ParagraphAlignmentNode from './Paragraph.js'
|
||||
import ParagraphAlignment from './Paragraph.js'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -53,9 +53,9 @@ export default {
|
||||
return {
|
||||
editor: new Editor({
|
||||
extensions: [
|
||||
new HardBreakNode(),
|
||||
new CodeMark(),
|
||||
new ParagraphAlignmentNode(),
|
||||
new HardBreak(),
|
||||
new Code(),
|
||||
new ParagraphAlignment(),
|
||||
],
|
||||
content: `
|
||||
<p style="text-align: left">
|
||||
|
||||
Reference in New Issue
Block a user