You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everybody,
I enjoy using the konvaJS library. It is amazing how much it can be achieved with it.
But I am struggling with a basic functionality that I want to implement in my app that I am doing using the library - text editing.
I have a canvas with some images and I want to leave notes for some of them. The note is just a rectangle with text, but on dblclick I want to have an edit mode.
Currently I am using the way of attaching an html textarea in the exact same coordinates of the page with the same width and height as the rectangle, but sometimes this is tricky, because the main container can be scaled or have some paddings.
Is there a native way of having editable text-area of something similar in the canvas or better approach than the one I am using currently.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everybody,
I enjoy using the konvaJS library. It is amazing how much it can be achieved with it.
But I am struggling with a basic functionality that I want to implement in my app that I am doing using the library - text editing.
I have a canvas with some images and I want to leave notes for some of them. The note is just a rectangle with text, but on dblclick I want to have an edit mode.
Currently I am using the way of attaching an html textarea in the exact same coordinates of the page with the same width and height as the rectangle, but sometimes this is tricky, because the main container can be scaled or have some paddings.
Is there a native way of having editable text-area of something similar in the canvas or better approach than the one I am using currently.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions