codex-team / codex-team/editor.js

The Inline Toolbar no longer allows multiple custom input tools

オープン
#2,829 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
questionable
主要言語
TypeScript
スター
31.9k
フォーク
2.2k
平均マージ
1日 13時間
マージ済み PR(30日)
2

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、link ツールと text color または classname ツールなど、2つのカスタム inline input tools で問題を再現し、inline toolbar の実装を調べます。現在の動作を以前の長いリストの動作と比較し、inline tool のドキュメントを確認します。同じ選択範囲で複数のカスタム入力を、一方が他方をオフに切り替えることなくアクティブなままにでき、ドキュメントもそれに合わせて更新されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。