codex-team / codex-team/editor.js

The Inline Toolbar no longer allows multiple custom input tools

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

Description

The new inline toolbar breaks our implementation of inline tools that are custom inputs instead of toggles.

Previously you could have multiple inline tools that opened custom inputs because each tool would open in a long list one after the other. But the recent updates make it so you can have only 1 of these custom inputs active at a time, and if you select another one it will toggle off your current selection.

For example, I wouldn't be able to have a custom link AND a custom text color/classname on this selection at the same time because it will automatically remove my current selection when I choose the other one.

![Screenshot 2024-09-26 at 12 12 21 PM](https://github.com/user-attachments/assets/291e3a82-789f-4478-a563-b1031e504f47)
![Screenshot 2024-09-26 at 12 11 05 PM](https://github.com/user-attachments/assets/6d1eeba2-a206-4334-ab3c-8a25874d826d)

The documentation isn't up to date for these changes, is there a way to remove this behaviour or fix this issue?

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.