Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom HTML attributes on EditableText component's textarea #6916

Open
HZ-labs opened this issue Jul 18, 2024 · 1 comment
Open

Comments

@HZ-labs
Copy link

HZ-labs commented Jul 18, 2024

Environment

@blueprintjs/core: 5.10.5

Feature request

We need to enhance the EditableText component from BlueprintJS to allow the addition of custom HTML attributes to its underlying textarea element. This feature is crucial for improving the component's flexibility and compatibility with various browser extensions and accessibility requirements. data-, spellcheck, aria-, and other standard HTML attributes.

Examples

<EditableText
  value={text}
  onChange={handleChange}
  textareaAttributes={{
    'data-gramm': 'false',  // Disable Grammarly
    'spellcheck': 'false',  // Disable browser spellcheck
    'aria-label': 'Edit description',  // Improve accessibility
  }}
/>
@sephialaureenciaa
Copy link

Hi, can I contribute to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants