Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Unexpected behavior with part of inline tools

オープン
#2,940 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

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

調査の方向性

まず、レポートに記載されている paragraph、underline、strikethrough ツールを使って Editor.js 2.30.8 で問題を再現します。underline と strikethrough の選択処理を bold と italic と比較し、その後、スタイルを無効にすると選択したテキストだけが変更され、ブロック内の他の箇所ではスタイルが維持されることを確認します。

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

説明

bug

Describe a bug. When you use styles (reproduced on underline and strikethrough) from inline toolbar for one text block, then press Shift+Enter (soft line break) or continue typing, then try to type something, it will contain old styles (which is probably fine behavior), but when you choose this part of text and try to disable new styles, it will disable it for all the text block, not only for choosen text. When you use "bold" or "italic" styles it works as expected, but with strikethrough and underline I got problems.

Steps to reproduce:

  1. Go to editorjs text block
  2. Type any text, for example: "This is my text"
  3. Choose everything and cover with underline or strikethrough
  4. choose "text" and try to disable strikethrough or underline

Expected behavior:
Choosen part became not underlined, while other contains it styles.

Video with this bug below:

https://github.com/user-attachments/assets/b5208f67-0fae-4009-bdfc-1e2d58f792d1

https://github.com/user-attachments/assets/c4916612-0534-43be-8787-f5c04526f318

PC, Windows, Chrome 137.0.7151.56.

Editor.js version: 2.30.8

Plugins you use with their versions:
@editorjs/paragraph@^2.11.7
@editorjs/underline@^1.2.1
@sotaproject/strikethrough@^1.0.1

主要言語
TypeScript
スター
32k
フォーク
2.2k
平均マージ
2日 1時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codex-team/editor.js のほかの issue

codex-team/editor.js の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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