1

I am trying to create a draggable input text box in Canvas, but Canvas doesn't seem to be allowing creation of any input element. Can anyone please help?

1 Answer 1

3

You can't include HTML elements in Canvas. HTML5 Canvas is a surface reserved for drawing. You are drawing it from Javascipt code after obtaining Graphics Context.

Maybe you can use just CSS positioning to handle moving around the HTML. It can be done with/without Canvas.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.