Skip to content

Unexpected behavior with part of inline tools #2940

Open
@izotikov

Description

@izotikov

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:

1.online-video-cutter.com.15.mp4
1.online-video-cutter.com.16.mp4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions