-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Make text component editable in the canvas #1694
Conversation
Nice, this is a useful change. Are we just looking to merge this quick or to polish it more?
|
Yep, that's what I mean with polish. I didn't spend too much time on UX. Just wanted to see how hard it is to build this kind of functionality within current Toolpad. The answer is, it doesn't seem to be too complicated for simple text.
Not sure what it should do for text. Maybe we should replace newlines with
I believe it should yes, not sure when that regressed, but it must have been a long time ago. Ideally It starts with a placeholder text, in editing mode, with all text selected. So that you can immediately start typing. Not sure how hard this would be to implement. |
Was just seeing what you thought, but yeah I think the current behavior should be ok too. Not sure if there's advantages to adding a
Yeah that sounds great! I think it shouldn't be too hard, it would probably just require adding/changing some logic in the component like you already did in this PR? |
I gave it a bit more polish
Screen.Recording.2023-02-22.at.11.58.58.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great change! Looks good to me
Make text component editable after double clicking the selected text node.
Screen.Recording.2023-02-21.at.17.59.51.mov