Text editor implemented from scratch using HTML5 Canvas API, more specifically its 2D context.
Common features of the text editors are implemented:
-
Cursor movement using arrow keys and mouse.
-
Copy and paste text.
When text is pasted, text editor window is automatically scrolled to make the cursor visible.
-
Text selection using mouse.
Text selection can be deleted or replaced with some other text.
-
Text deletion using Delete and Backspace keys.
-
Vertical and horizontal scrollbars.
Clone the repository and open index.html
in your browser. Try to type some text in the editor window.