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:
@@ -60,7 +60,7 @@ Or maybe you want to override the `insertText` behavior to "linkify" URLs:
|
||||
const { insertText } = editor
|
||||
|
||||
editor.insertText = text => {
|
||||
if (isUrl(text) {
|
||||
if (isUrl(text)) {
|
||||
// ...
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user