@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.cjs
CHANGED
|
@@ -726,6 +726,16 @@ function inputRulesPlugin(props) {
|
|
|
726
726
|
},
|
|
727
727
|
},
|
|
728
728
|
props: {
|
|
729
|
+
handleTextInput(view, from, to, text) {
|
|
730
|
+
return run$1({
|
|
731
|
+
editor,
|
|
732
|
+
from,
|
|
733
|
+
to,
|
|
734
|
+
text,
|
|
735
|
+
rules,
|
|
736
|
+
plugin,
|
|
737
|
+
});
|
|
738
|
+
},
|
|
729
739
|
handleDOMEvents: {
|
|
730
740
|
compositionend: view => {
|
|
731
741
|
setTimeout(() => {
|
|
@@ -743,19 +753,6 @@ function inputRulesPlugin(props) {
|
|
|
743
753
|
});
|
|
744
754
|
return false;
|
|
745
755
|
},
|
|
746
|
-
keyup(view, event) {
|
|
747
|
-
if (event.key.length === 1) {
|
|
748
|
-
return run$1({
|
|
749
|
-
editor,
|
|
750
|
-
from: view.state.selection.from,
|
|
751
|
-
to: view.state.selection.from,
|
|
752
|
-
text: '',
|
|
753
|
-
rules,
|
|
754
|
-
plugin,
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
return false;
|
|
758
|
-
},
|
|
759
756
|
},
|
|
760
757
|
// add support for input rules to trigger on enter
|
|
761
758
|
// this is useful for example for code blocks
|