Is it possible to make a web-based code editor?

I have searched through various sites but still can’t figure out how web-based editors work.

Can anyone please fill me up about the working techniques of a web-based editor like Monaco, Codemirror, Ace, etc?

It’s my goal to make a web-based editor. Any help appreciated.