Skip to main content
Render Doconda’s editor plugin (@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

  1. Get the plugin in the dashboard (Editor), with a 7-day free trial. See Licence and domains.
  2. Install it with the command the dashboard gives you. It needs React 19 or later:
  1. Render the editor in a container with a height and pass it the .xlsx link:
  1. Get the file when the user saves (Ctrl/Cmd+S or File → Save):
The format comes from the link’s extension. If it has none, pass 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: SUMA or SUM, 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.
Whatever the editor doesn’t touch is saved as is: parts of the file it can’t edit are kept.

View only

The toolbar disappears and nothing can be edited; users can still select and copy, and move between sheets.

Choose the buttons

The Excel toolbar has its own button IDs. toolbar picks which appear and in what order, and | separates groups:
Some Excel IDs: 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

Yes. Formulas are saved in the .xlsx as formulas, not as fixed values.
Yes. Pass it in file (for example, the File from an <input type="file">) instead of src, with its name in fileName.
The same component opens .docx and .pptx. See Word editor for React and PowerPoint viewer for React.
Yes, with theme for the editor and colors for the palette users pick from. Cells keep the file’s own colours. See Customize.