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