We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60fa65e commit 7757a4eCopy full SHA for 7757a4e
packages/react-text/src/plugins/with-text.ts
@@ -8,6 +8,10 @@ export const withText = <T extends ReactEditor>(editor: T) => {
8
editor.insertText('\n');
9
};
10
11
+ e.insertSoftBreak = () => {
12
+ editor.insertText('\n');
13
+ };
14
+
15
e.insertData = (data: DataTransfer) => {
16
let text = data.getData('text/plain');
17
const plaitData = data.getData(`application/x-slate-fragment`);
0 commit comments