@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.cjs
CHANGED
|
@@ -19657,6 +19657,9 @@ var Emoji = import_core.Node.create({
|
|
|
19657
19657
|
},
|
|
19658
19658
|
// replace text emojis with emoji node on any change
|
|
19659
19659
|
appendTransaction: (transactions, oldState, newState) => {
|
|
19660
|
+
if (this.editor.view.composing) {
|
|
19661
|
+
return;
|
|
19662
|
+
}
|
|
19660
19663
|
const docChanges = transactions.some((transaction) => transaction.docChanged) && !oldState.doc.eq(newState.doc);
|
|
19661
19664
|
if (!docChanges) {
|
|
19662
19665
|
return;
|