Skip to content

Commit

Permalink
feat: make figure content accepts text only
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Apr 28, 2023
1 parent c0c7412 commit 697180c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@matters/matters-editor",
"version": "0.2.0-alpha.30",
"version": "0.2.0-alpha.31",
"description": "Editor for matters.news",
"author": "https://github.com/thematters",
"homepage": "https://github.com/thematters/matters-editor",
Expand Down
2 changes: 1 addition & 1 deletion src/editors/extensions/figureAudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ declare module '@tiptap/core' {
export const FigureAudio = Node.create({
name: 'figureAudio',
group: 'block',
content: 'inline*',
content: 'text*',
draggable: true,
isolating: true,

Expand Down
2 changes: 1 addition & 1 deletion src/editors/extensions/figureEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const normalizeEmbedURL = (url: string): NormalizeEmbedURLReturn => {
export const FigureEmbed = Node.create({
name: 'figureEmbed',
group: 'block',
content: 'inline*',
content: 'text*',
draggable: true,
isolating: true,

Expand Down
2 changes: 1 addition & 1 deletion src/editors/extensions/figureImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ declare module '@tiptap/core' {
export const FigureImage = Node.create({
name: 'figureImage',
group: 'block',
content: 'inline*',
content: 'text*',
draggable: true,
isolating: true,

Expand Down

0 comments on commit 697180c

Please sign in to comment.