A
A
Alexey Vardugin2016-02-08 13:01:02
Angular
Alexey Vardugin, 2016-02-08 13:01:02

How to move a tag in a text field in Angular JS?

It is necessary to implement the movement (drag-n-drop) of the tag in the text.
The field itself is of type contenteditable. The user can enter text and insert an unlimited number of tags. Tags are added in the controller.
13fc04cac31a4df0a8dc9846e37bb896.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Vardugin, 2016-02-15
@Aizlee

Maybe someone will come in handy. Solved this problem using ui-sortable. Parsed the text, found each word and wrapped it in a tag (in my case it's a span).
The module I used is here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question