More customization for PlateFloatingLink #1761
Closed
eugenet8k
started this conversation in
Feature Requests
Replies: 1 comment 2 replies
-
We're in the process of migrating all the components into "headless UI", see https://github.com/orgs/udecode/projects/3 and https://reakit.io/docs/composition/. The link UI is completed from Plate 15. The idea is that styled components like However PRs are still welcome to add props to these dumb components. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
PlateFloatingLink
is a great component for hyperlink adding/editing. Although it's not internationalization friendly, it has a few English strings hardcoded https://github.com/udecode/plate/blob/main/packages/ui/nodes/link/src/PlateFloatingLink.tsx#L54 and there is not easy way to override the labels.It would be great to either have
props
based API to pass the labels overrides.Another approach is if
PlateFloatingLink
would expose a ref to the root DOM element, so at least the text could be replaced via direct DOM manipulation after React render is completed.Beta Was this translation helpful? Give feedback.
All reactions