Boundary element of the floating toolbar element.
Boundary element where the text for this annotation appears.
DOM element for the annotated text.
Optional
__unstable_Wether the annotated text node has editor focus.
The input form for the annotation object.
If the editor form for this annotation object currently have form focus.
Markers (meta data) connected to this annotation.
Closes the editing form connected to this annotation.
Opens the editing form connected to this annotation.
Focus a form node in the object for this annotation.
Removes the annotation object from the text.
If the annotation is currently opened for editing.
The parent schema type. For annotations this this the block type.
The full form path to this annotation from document root.
Form presence for this annotation.
Is the annotation object read only?
Optional
renderPlugin chain render callback.
Optional
renderPlugin chain render callback.
Plugin chain render callback.
Plugin chain render callback.
Optional
renderPlugin chain render callback.
Plugin chain render callback.
Plugin chain render callback.
Plugin chain render callback.
The schema type for the annotation object.
If the annotated text currently is selected by the user.
React element of the text that is being annotated.
Form validation for the annotation object.
Value of the annotation object.
Props for rendering a Portable Text annotation
Remarks
If you want to render a mix of the annotated text and non-text content, you have to attribute the non-text containers with
contentEditable={false}
. See the second example.Example: Simple example of customizing the annotation text to render yellow.
Example: Simple example of rendering the annotation with a custom modal for editing.
Note that the form content container is attributed as
contentEditable={false}
. This is to signal to the text editor that this content isn't part of the editable text.