Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 878 Bytes

File metadata and controls

30 lines (17 loc) · 878 Bytes

Description

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.

How to try

Clone the repository and open index.html in your browser. Try to type some text in the editor window.

Watch a demo