codex-team / codex-team/editor.js

public InlineToolbar.checkToolsState or trigger `checkState` in each selectionchange event

Open
#2,372 2 comments 3 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 wrote inline plugin to change style
```
input `123456` in editor;
First I chagne `123`to underline;
Then I select `3456` .In most editors ,If I set color to underline.`123456` Will be set to underline.
And when I select `4`,toolbar icon will become selected,and when I select `45` toolbar icon will become unselected.
```
But checkState only call once,so toolbar icon can't change with selectionchange
so I think `checkState` need to trigger multiple times when `selectionchange`

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.