Browse Source

DOC-2369: Added `tabIndex` prop to React's tech ref (#3225)

pull/3228/head
Daniel Oakman 1 year ago
committed by GitHub
parent
commit
ea9aa6c423
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 19
      modules/ROOT/partials/integrations/react-tech-ref.adoc

19
modules/ROOT/partials/integrations/react-tech-ref.adoc

@ -22,6 +22,7 @@
** xref:toolbar[`+toolbar+`]
** xref:tinymcescriptsrc[`+tinymceScriptSrc+`]
** xref:value[`+value+`]
** xref:tabIndex[`+tabIndex+`]
* xref:using-the-tinymce-react-component-as-a-uncontrolled-component[Using the TinyMCE React component as a uncontrolled component]
* xref:using-the-tinymce-react-component-as-a-controlled-component[Using the TinyMCE React component as a controlled component]
* xref:event-binding[Event binding]
@ -154,6 +155,8 @@ xref:event-binding[`+onInit+`]:: An event handler for notifying when the editor
xref:value[`+value+`]:: Sets and enforces the value of the editor. Only used for a controlled component.
xref:tabIndex[`+value+`]:: Sets the tabindex of the target element that the editor wraps.
[[available-props]]
== Available props
@ -597,6 +600,22 @@ For detailed information on using the `+value+` prop, see: xref:using-the-tinymc
*Type:* `+String+`
[[tabIndex]]
=== `+tabIndex+`
Use the `+tabIndex+` prop to set the https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex[tabindex] on the target element that the editor wraps.
*Type:* `+Number+`
==== Example: using `+tabIndex+`
[source,jsx]
----
<Editor
tabIndex={-1}
/>
----
[[using-the-tinymce-react-component-as-a-uncontrolled-component]]
== Using the {productname} React component as a uncontrolled component

Loading…
Cancel
Save