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
Pass any component inside editable Paragraph in Ant Design #19048
Comments
Hello @deadcoder0904. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by 你好 @deadcoder0904, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。 |
I've attached the Codesandbox → https://codesandbox.io/s/antd-paragraph-not-work-mqgoy It contains 2 things - a working case & a non-working case. I need the non-working case to be working :) |
This issue is closed because it has been marked as |
@shaodahong I did add a repro, can u re-open it? |
Try this way: https://codesandbox.io/s/antd-paragraph-not-work-y1ewd |
@afc163 I already did, if u click on the edit button & then click outside it opens the URL which I don't want as I need to edit text without changing URLs |
@afc163 how did you work around this? I have a similar use-case where I need to be able to edit the link inside the Paragraph while also being able to click on it. |
What problem does this feature solve?
I have a use-case where I want to make a link content-editable as well as clickable. Currently, it looks like:
This does solve the content-editable issue but is not clickable. And no other way to make it clickable.
I'm unable to do it since Ant Design only supports
string
as achild
. I've tried different ways but can't make this work.What does the proposed API look like?
The proposed API looks like:
The text was updated successfully, but these errors were encountered: