M
M
mapleart2018-01-29 20:37:22
JavaScript
mapleart, 2018-01-29 20:37:22

How to insert text in contentEditable cursor position in vue js?

There is:

<div ref="input" contenteditable="true" role="textbox" tabindex="0" aria-multiline="true"></div>

It is necessary, on vue js, to insert text at the cursor position.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2018-01-29
@mappleart

https://jsfiddle.net/f14f7Lmw/1/
Only Vue has almost nothing to do with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question