J
J
Juniorrrrr2020-04-15 13:45:24
JavaScript
Juniorrrrr, 2020-04-15 13:45:24

How to properly process links from google docs?

The task is to write an editor that will understand links that are added via Google Docs here.

That is, it turns out that we added a link in Google Doc, then we copy the entire line and paste it into the textarea, this underlined word should be the same link as in Google Docs.

If you insert a string simply into a textarea, then it will be plain text. There is an idea that Google adds some kind of hidden character and maybe it can be somehow seen through JS?

Tell me which way to dig.

5e96e51d66f27246494133.png

5e96e58205044544916048.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-04-15
@Juniorrrrr

Use div with contenteditable instead of textarea

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question