Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to always show the plus icon for the new line instead of on hovering❓ #2229

Open
50calDhruv opened this issue Dec 27, 2022 · 3 comments

Comments

@50calDhruv
Copy link

The plus sign to show the toolbar is only visible when one hovers over a block which is fine for blocks that are already filled. But is there a way to to keep it visible for the next/new block, with no need to hover over it?

@lijie1129
Copy link

lijie1129 commented Jan 12, 2023

Update: I think @azterizm's approach has the least impact on editorjs.

I think it needs to modify the code.

The code for showing the toolbar after the hovering block is here:

this.eventsDispatcher.emit(this.events.blockHovered, {
block: this.Editor.BlockManager.getBlockByChildNode(hoveredBlock),
});

@ikarus-dhruv
Copy link

Thanks for responding but how do I access this location in my react app?

@azterizm
Copy link

Override the editor styles. Put these in your CSS file and import.

.ce-toolbar__actions {
  opacity: 1 !important;
}
.ce-toolbar {
  display: block !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants