codex-team / codex-team/editor.js

Inconsistent behavior when interacting with different inline tools

未关闭
#1,237 0 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
31.9k
派生
2.2k
平均合并
1 天 1 小时
30 天内合并 PR
1

描述

The combination of enabling/disabling some inlinetool has an inconsistent behavior.

Steps to reproduce:
1. Open the inlinetool clicking over a text
2. Select bold
3. Select link
4. Unselect link

Expected behavior:

In step 3, the bold icon lose its active class. But the text is still bold.
In step 4, the text lose its bold style.

Similar issues when try to change from inlineCode to underline:
- add underline, add marker, remove underline: marker tool lose the active class.

Browser: Chrome

Editor.js version: Up 2.17

Plugins you use with their versions:
Link, Bold

贡献指南

这个仓库没有索引到贡献指南

调研方向

Reproduce the issue in Chrome using the inline tool with the Link and Bold plugins, following the listed bold/link and inlineCode/underline/marker sequences. Inspect the inline tool interaction and plugin entry points to compare active classes with the text styles. Done means changing one inline tool no longer incorrectly clears another tool's active state or formatting.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。