@tiptap/extension-emoji 3.0.9 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/emoji.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -19622,6 +19622,9 @@ var Emoji = Node.create({
|
|
|
19622
19622
|
},
|
|
19623
19623
|
// replace text emojis with emoji node on any change
|
|
19624
19624
|
appendTransaction: (transactions, oldState, newState) => {
|
|
19625
|
+
if (this.editor.view.composing) {
|
|
19626
|
+
return;
|
|
19627
|
+
}
|
|
19625
19628
|
const docChanges = transactions.some((transaction) => transaction.docChanged) && !oldState.doc.eq(newState.doc);
|
|
19626
19629
|
if (!docChanges) {
|
|
19627
19630
|
return;
|