Editor.js: The inline tool has a strange behavior when selecting the entire content of a block

Created on 24 Jul 2019  路  11Comments  路  Source: codex-team/editor.js

Hello, when selecting the entire content of a block I would like to have my custom inline tool that I developed. How can I access it in this case?

issue

important

Most helpful comment

It's a critical bug, maybe make a 2.15.2 hotfix?

All 11 comments

Any news?

When you select the entire block, you will see the Conversion Toolbar instead of Inline Toolbar. There are only Block tools to convert selected Block.

We are planning to check for a lines count and do not show Conversion Toolbar for small single-line paragraphs like you show on gif. Will be added in next releases.

@neSpecc Peter, this is really strange behavior in a case when user wants to apply italic style for all current paragraph.

Can you give a temporary workaround solution? Thanks.

I'm thinking that it's a bad practice to make entire paragraph italic or bold or link. You can use specific blocks for that reasons.

We will include a solution in next minor version.

@neSpecc Can you say the date of the next minor version? Thanks

I'm thinking that it's a bad practice to make entire paragraph italic or bold or link. You can use specific blocks for that reasons.

We will include a solution in next minor version.

@neSpecc
I think any user can need to apply inline styles (italic/bold etc.) for all block. Instead of %95 of selection, i prefer to see both inline toolbar and conversion toolbar together in one line when a user selects all block. Otherwise only inline toolbar can be displayed.

+1 for Topic Starter. For exapmle, i have title block, and can't make it bold/italic/whatever on already worked project(

I'm thinking that it's a bad practice to make entire paragraph italic or bold or link. You can use specific blocks for that reasons.

Not to sound disrespectful, but why exactly is it a bad practice?

We are planning to check for a lines count and do not show Conversion Toolbar for small single-line paragraphs

It can be helpful for this issue. Strange behavior of toolbar appears not only in single-line blocks. I've tried to select a part of text and get inline tool.

There is a simple text block on gif:
sc

It's a critical bug, maybe make a 2.15.2 hotfix?

Resolved in 2.16 #966

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiotdev picture tiotdev  路  3Comments

hata6502 picture hata6502  路  3Comments

talyguryn picture talyguryn  路  3Comments

oknoorap picture oknoorap  路  4Comments

davedbase picture davedbase  路  3Comments