N
N
NewTypes2013-12-01 13:02:31
JavaScript
NewTypes, 2013-12-01 13:02:31

WYSIWYG editor and text selection? How?

Help me figure out how rich text editors on websites handle the task of selecting multiple nodes (for example, we have a piece of text highlighted with a b tag, after this piece there is plain text that is not selected in any way, having only one parent div, like node b ). It wouldn't be a question if I had one node and text inside, but how do I select the text at the intersection of the nodes?
I pick nicedit, but very sluggishly.
What do I need to google to find the answer?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2013-12-01
@NewTypes

learn.javascript.ru/vydelenie-range-textrange-i-selection

N
NewTypes, 2013-12-01
@NewTypes

stackoverflow.com/questions/2584301/getselection-surroundcontents-across-multiple-tags

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question