Editing Table On Page - IE #851
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#851
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi All,
I found this demo: http://sheetjs.com/demos/modify.html which is perfect for what we are after, I have however run into a snag, the editing sheet on the page doesn't seem to work for any versions of IE.
Going by the demo link it takes me to this page: http://caniuse.com/#search=contenteditable which says IE 11 does support the theml5 contenteditable tag, however on further research it seems like it only works on span or div tags, the script sets this up as a HTML table with the contenteditable tag on the td.
Has anyone come up with a work-around for this? or am I doing something incorrectly? I'm using the demo at the above link, that doesn't work in IE for me either.
Thanks
As a hack, I did this within the xlsx file, which does work. I was hoping there may be a better way.
function writextag(f,g,h) { return '<' + f + (isval(h) ? wxt_helper(h) : "") + (isval(g) ? (g.match(wtregex)?' xml:space="preserve"' : "") + '><span contenteditable="true">' + g + '</span></' + f : "/") + '>';}
The relevant part is in
make_html_row
-- it makes more sense to add the span there:More generally, we definitely recommend using a proper JS grid component. We like the canvas-based approach taken by
canvas-datagrid
-- the included datagrid demo is an example integration that is publicly deployed at http://oss.sheetjs.com/js-xlsx/datagridThis is also failing on Edge 14