mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 15:02:51 +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
|
const { insertText } = editor
|
||||||
|
|
||||||
editor.insertText = text => {
|
editor.insertText = text => {
|
||||||
if (isUrl(text) {
|
if (isUrl(text)) {
|
||||||
// ...
|
// ...
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user