Releases: mzechmeister/csvplotter
Releases · mzechmeister/csvplotter
pseudo-contenteditable dropcell
refact: pseudo-contenteditable dropcells! This applies the idea prototyped in https://gist.github.com/mzechmeister/d0333d6e46746efc2f06e61547d69047 with the additional enhancement, that each textarea line is assigned to a dropcell. It overcomes the problems of contenteditable, which are e.g. * mixes content and layout, we want to edit to content only, the rendering should be done by parsing. * edit history tricky, needs obsolete document.execCommand and document.execCommand + insertHTML does not work. * different browser behaviour for caret position. However, also for textarea document.execCommand seems to be the only way to use the builtin history. Also, all input needs to be redirected to the textarea. Also insertHTML should be captured before input to Traces. Drop and paste to Traces needs plain text, otherwise the dropcell span is splitted: https://jsfiddle.net/eruyb96v feat: undo/redo button fix: unwanted deletion of dropcell (now newline needs to tracked) fix: stop blinking cursor fix: cursor hidden at kbox end changes: up/down keys focus naturally next ta-line/dropcell (previously tab key) and probably much more...
editable trace div
Features:
- One can nicely browse through the cells with arrowkeys on keyboard or swiping on spacebar (mobile devices).
- Tabbing focusses next cell.
See #12.