codex-team / codex-team/editor.js

In a dynamic list UI scenario is there a way to recognize which instance of editor was updated/changed 💡

Open
#1,219 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

I have a dynamic list UI scenario, where I would like to use this editor. However, I need a way to identify which instance of the editor was edited in the onChange event. Is there a way to achieve this?

Normally I use a data-index attribute on the DOM to identify which index in the state should I update.

I think it would be beneficial if an optional index attribute is provided to set an index

Also, another option I can think off is to see if there is a way to access the **holder** value set in the config? Can someone help with this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.