question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add spellCheck, autoCorrect, autoFocus, role <Editor> properties to docs

See original GitHub issue

I currently just need the default browser spell check, but it seems that you’d want to pass a spellCheck property to the root <div> (along with other standard event handlers like onClick).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
MerlinMasoncommented, Jul 21, 2020

Ahh right, yeah I’m using the latest version but couldn’t find anything in the docs for these options… Searching through the source code I’ve managed to get the following working.

import { Editable } from "slate-react";

...

<Editable
    autoCapitalize="sentences"
    autoCorrect="true" // "true" should be passed as string
/>

Hopefully that’s useful to someone else 😃

0reactions
padunkcommented, Aug 18, 2021

If someone need it:

<Editable
    autoCapitalize="false"
    autoCorrect="false"
    spellCheck="false"
/>

Slate 0.65…3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check your spelling & grammar in Google Docs - Computer
Check your spelling & grammar in Google Docs ... In the top left, click Spell Check Spell check . ... Add a word...
Read more >
Editor - Slate
ARIA property to define the role of the editor, it defaults to textbox when editable. spellCheck.
Read more >
autofocus - HTML: HyperText Markup Language | MDN
The autofocus global attribute is a Boolean attribute indicating that an element should be focused on page load, or when the that it...
Read more >
Form Input | Components - BootstrapVue
'spelling' Convey that a spelling error has been detected. ... to the datalist tag, the list can be references from a text input...
Read more >
Input - dbc docs - Dash Bootstrap Components - Faculty AI
Add valid / invalid styles to your Input components using the valid and invalid keyword arguments. Python. R. Julia. import dash_bootstrap_components ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found