@tiptap/core 2.7.0-pre.0 → 2.7.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 +10 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -13
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +10 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/InputRule.ts +11 -14
package/dist/index.umd.js
CHANGED
|
@@ -722,6 +722,16 @@
|
|
|
722
722
|
},
|
|
723
723
|
},
|
|
724
724
|
props: {
|
|
725
|
+
handleTextInput(view, from, to, text) {
|
|
726
|
+
return run$1({
|
|
727
|
+
editor,
|
|
728
|
+
from,
|
|
729
|
+
to,
|
|
730
|
+
text,
|
|
731
|
+
rules,
|
|
732
|
+
plugin,
|
|
733
|
+
});
|
|
734
|
+
},
|
|
725
735
|
handleDOMEvents: {
|
|
726
736
|
compositionend: view => {
|
|
727
737
|
setTimeout(() => {
|
|
@@ -739,19 +749,6 @@
|
|
|
739
749
|
});
|
|
740
750
|
return false;
|
|
741
751
|
},
|
|
742
|
-
keyup(view, event) {
|
|
743
|
-
if (event.key.length === 1) {
|
|
744
|
-
return run$1({
|
|
745
|
-
editor,
|
|
746
|
-
from: view.state.selection.from,
|
|
747
|
-
to: view.state.selection.from,
|
|
748
|
-
text: '',
|
|
749
|
-
rules,
|
|
750
|
-
plugin,
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
return false;
|
|
754
|
-
},
|
|
755
752
|
},
|
|
756
753
|
// add support for input rules to trigger on enter
|
|
757
754
|
// this is useful for example for code blocks
|