{
[styles.labelVisible]: props.label && counter() > 0
})}
>
-
- {(props.maxLength || DEFAULT_MAX_LENGTH) - counter()}
-
+ {/* Display label when applicable */}
0}>
{props.label}
-
-
-
-
-
- {(triggerRef: (el: HTMLElement) => void) => (
-
- )}
-
-
- {(triggerRef) => (
-
- )}
-
-
- {(triggerRef) => (
-
- )}
-
-
-
- {(triggerRef) => (
-
- )}
-
-
-
-
- {(triggerRef) => (
-
- )}
-
-
-
-
-
-
-
-
- }>
-
-
-
+
+
+ }
+ >
+
+
+ {/* Link bubble menu */}
+
+
+
+
+ {/* editor element */}
+
+
+ {/* Display character limit if maxLength is provided */}
+
+ {(props.maxLength || DEFAULT_MAX_LENGTH) - counter()}
+
+
+ {/* Image upload modal (show/hide) */}
- {
- renderImage(value as UploadedFile)
- }}
- />
+
-
-
-
-