Skip to content

Commit 2466b0b

Browse files
committed
Give names to the extensions
1 parent baa9e96 commit 2466b0b

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

django_prose_editor/static/django_prose_editor/editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/menu.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { wrapInList } from "@tiptap/pm/schema-list"
66
import { Plugin } from "@tiptap/pm/state"
77

88
export const Menu = Extension.create({
9+
name: "menu",
10+
911
addProseMirrorPlugins() {
1012
const schema = this.editor.schema
1113
const config = this.options.config

src/nospellcheck.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { Plugin } from "@tiptap/pm/state"
22
import { Extension } from "@tiptap/core"
33

44
export const NoSpellCheck = Extension.create({
5+
name: "noSpellCheck",
6+
57
addProseMirrorPlugins() {
68
return [noSpellCheck()]
79
},

src/typographic.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { Plugin } from "@tiptap/pm/state"
66
import { Decoration, DecorationSet } from "@tiptap/pm/view"
77

88
export const Typographic = Extension.create({
9+
name: "typographic",
10+
911
addProseMirrorPlugins() {
1012
return [typographicPlugin]
1113
},

0 commit comments

Comments
 (0)