1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 23:12:52 +02:00

doc: fix parenthesis missing (#3754)

This commit is contained in:
wendellhu
2020-07-02 23:21:20 +08:00
committed by GitHub
parent 32e120af19
commit c8a7883b2a

View File

@@ -60,7 +60,7 @@ Or maybe you want to override the `insertText` behavior to "linkify" URLs:
const { insertText } = editor const { insertText } = editor
editor.insertText = text => { editor.insertText = text => {
if (isUrl(text) { if (isUrl(text)) {
// ... // ...
return return
} }