@doconda/editor) and pass the .xlsx in src. Users change cells, formulas and
formatting inside your site, formulas are calculated in the editor, and with readOnly they only view the workbook.
The file is edited in the browser, not uploaded anywhere.
Steps
- Get the plugin in the dashboard (Editor), with a 7-day free trial. See Licence and domains.
- Install it with the command the dashboard gives you. It needs React 19 or later:
- Render the editor in a container with a height and pass it the
.xlsxlink:
- Get the file when the user saves (Ctrl/Cmd+S or File → Save):
format="cell".
What it does in an Excel file
- Cells and formulas, calculated in the editor.
engineLocale("es-ES","en-US"…) sets how they’re written:SUMAorSUM, decimal comma or point. - Formatting: fonts, fill, borders, number formats, merge and wrap text.
- Structure: insert and delete rows and columns, change widths and heights, freeze panes, and work with several sheets.
- Data: sort, filter, charts and comments.
View only
Choose the buttons
The Excel toolbar has its own button IDs.toolbar picks which appear and in what order, and | separates groups:
undo redo font size bold italic underline strike color fill borders
alignLeft alignCenter alignRight wrap merge numberFormat currency percent decimalsDown decimalsUp
insertCells deleteCells autosum sort filter chart comment freeze. The default toolbar is exported as
CELL_TOOLBAR. See Customize: toolbar.
FAQ
Are formulas kept when saving?
Are formulas kept when saving?
Yes. Formulas are saved in the
.xlsx as formulas, not as fixed values.Can I open an Excel file the user uploaded?
Can I open an Excel file the user uploaded?
Yes. Pass it in
file (for example, the File from an <input type="file">) instead of src, with its name in
fileName.What about Word and PowerPoint?
What about Word and PowerPoint?
The same component opens
.docx and .pptx. See Word editor for React and
PowerPoint viewer for React.Can I use my brand colours?
Can I use my brand colours?
Yes, with
theme for the editor and colors for the palette users pick from. Cells keep the file’s own colours.
See Customize.Related
- Editor plugin: every prop, event and method.
- How do I edit an Excel file with AI and keep its formulas?