Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature request: Pass the empty parameter to custom editors

Open Beginner friendly
#1,809 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

Start in src/utils/editor.js and compare the custom editor call with the native text editor's use of empty. Pass the parameter through so custom editors can choose between an empty string and the existing cell value; done when the custom editor receives it and can support the same behavior.

Written by the indexing model from the issue text.

Description

Feature request: Pass the empty parameter to custom editors

Hi,

In src/utils/editor.js, the custom editor is currently called without the empty parameter:

obj.options.columns[x].type.openEditor(
    cell,
    obj.options.data[y][x],
    parseInt(x),
    parseInt(y),
    obj,
    obj.options.columns[x],
    e
);

However, the native text editor uses empty to determine whether to initialize the editor with an empty string or the existing cell value:

const value = empty == true ? '' : obj.options.data[y][x];

Could you please pass the empty parameter to the custom editor as well, so custom editors can support the same behavior as the native text editor?

Thanks!

Dominant language
JavaScript
Stars
7.2k
Forks
890
Avg merge
3d 19h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jspreadsheet/ce

All issues in jspreadsheet/ce

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.