3 ms·
One can use contentEditable HTML5 API. http://caniuse.com/#search=contenteditable http://caniuse.com/#search=contenteditable * https://accessgarage.wordpress.
by frik 12y ago
One can use contentEditable HTML5 API.
http://caniuse.com/#search=contenteditable http://caniuse.com/#search=contenteditable
* https://accessgarage.wordpress.com/2009/05/08/how-to-hack-your-app-to-make-contenteditable-work/ https://accessgarage.wordpress.com/2009/05/08/how-to-hack-yo...
* https://blog.whatwg.org/the-road-to-html-5-contenteditable https://blog.whatwg.org/the-road-to-html-5-contenteditable
* http://www.quirksmode.org/dom/execCommand.html http://www.quirksmode.org/dom/execCommand.html with test page: http://www.quirksmode.org/dom/execCommand/ http://www.quirksmode.org/dom/execCommand/
The text font rendering in Canvas2D is slow. For example the Canvas based charting library Flot use HTML Divs overlays instead of Canvas font rendering: http://www.flotcharts.org/flot/examples/ http://www.flotcharts.org/flot/examples/ (last link)
Another method would be WebGL.