Skip to content

Commit

Permalink
Merge branch 'ueberdosis:develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
YonLJ authored Jul 26, 2024
2 parents ad133fd + b012471 commit b862ecd
Show file tree
Hide file tree
Showing 130 changed files with 2,087 additions and 787 deletions.
5 changes: 0 additions & 5 deletions .changeset/atom-text-content-in-full.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rotten-geckos-notice.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/serious-foxes-decide.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/smart-rockets-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@tiptap/core": patch
"@tiptap/extension-placeholder": patch
---

This addresses an issue with `isNodeEmpty` function where it was also comparing node attributes and finding mismatches on actually empty nodes. This helps placeholders find empty content correctly
5 changes: 5 additions & 0 deletions .changeset/tiny-walls-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/core": patch
---

Fixes a bug where if `enableContentCheck` was true, inserting content as JSON nodes would fail. This was because the node that was being created technically had a different schema than the content being inserted, so it would fail to generate the correct content value
1 change: 1 addition & 0 deletions demos/src/Marks/Link/React/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React, { useCallback } from 'react'

export default () => {
const editor = useEditor({
editable: true,
extensions: [
Document,
Paragraph,
Expand Down
4 changes: 2 additions & 2 deletions demos/src/Nodes/Table/React/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ context('/src/Nodes/Table/React/', () => {
const html = editor.getHTML()

expect(html).to.equal(
'<table style="minWidth: 25px"><colgroup><col></colgroup><tbody><tr><td colspan="1" rowspan="1"><p></p></td></tr></tbody></table>',
'<table style="min-width: 25px"><colgroup><col></colgroup><tbody><tr><td colspan="1" rowspan="1"><p></p></td></tr></tbody></table>',
)
})
})
Expand All @@ -75,7 +75,7 @@ context('/src/Nodes/Table/React/', () => {
const html = editor.getHTML()

expect(html).to.equal(
'<table style="minWidth: 25px"><colgroup><col></colgroup><tbody><tr><th colspan="1" rowspan="1"><p></p></th></tr></tbody></table>',
'<table style="min-width: 25px"><colgroup><col></colgroup><tbody><tr><th colspan="1" rowspan="1"><p></p></th></tr></tbody></table>',
)
})
})
Expand Down
4 changes: 2 additions & 2 deletions demos/src/Nodes/Table/Vue/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ context('/src/Nodes/Table/Vue/', () => {

const html = editor.getHTML()

expect(html).to.equal('<table style="minWidth: 25px"><colgroup><col></colgroup><tbody><tr><td colspan="1" rowspan="1"><p></p></td></tr></tbody></table>')
expect(html).to.equal('<table style="min-width: 25px"><colgroup><col></colgroup><tbody><tr><td colspan="1" rowspan="1"><p></p></td></tr></tbody></table>')
})
})

Expand All @@ -72,7 +72,7 @@ context('/src/Nodes/Table/Vue/', () => {

const html = editor.getHTML()

expect(html).to.equal('<table style="minWidth: 25px"><colgroup><col></colgroup><tbody><tr><th colspan="1" rowspan="1"><p></p></th></tr></tbody></table>')
expect(html).to.equal('<table style="min-width: 25px"><colgroup><col></colgroup><tbody><tr><th colspan="1" rowspan="1"><p></p></th></tr></tbody></table>')
})
})

Expand Down
Loading

0 comments on commit b862ecd

Please sign in to comment.