Moving a textbox on a live site with code

I can’t seem to move a textbox with code on a live site. What I’d really like is a dragable textbox that users can click on and move around, positioning it right where they want it over an image. when they let go it records the textBox’s x and y positions, which would be used later. There doesn’t seem to be a way natively to make an element dragable.

I’m using Wix Studio.

I have a #layout container, with a #textContainter inside it. In the #textContainer there is a #textLayout textbox. I’m trying to move the #textContainer around inside of another container called, #imageContainer.

#layout
#textContainer
#textLayout
#imageContainer

I’ve tried just about everything there is. I’ve tried using code to move it, and now I’m down to having 9 textBoxes in each of the positions that the text could be (top-left, top-center, top-right etc.). then showing or hiding them based on a dropdown menu. Nothing seems to affect this text.

Hi, @Darrin_Fletcher !!

I don’t think Wix has built-in drag-and-drop functionality for elements, so ideally, you’d embed something written in regular HTML as a custom element—that should work. :melting_face:

When it comes to features that don’t exist in Wix, the answer often ends up being the same—but in general, almost anything can be embedded using custom elements.