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

Multiple block selection #2474

Open
zeinabzahran opened this issue Sep 11, 2023 · 5 comments
Open

Multiple block selection #2474

zeinabzahran opened this issue Sep 11, 2023 · 5 comments

Comments

@zeinabzahran
Copy link

How to select more than one block and perform action like bold or italic to whole selection?

@lijie1129
Copy link

Hi, @zeinabzahran

As of version 2.29.0-rc.0, editor.js still does not support perform inline actions across mutiple blocks.

@Ian4869
Copy link

Ian4869 commented Oct 11, 2023

Hi,Have you found a way to achieve this requirement?

@osain-az
Copy link
Contributor

I can look at it one of these days

@anand-cubyts
Copy link

this will be really helpful

@sebmeister2077
Copy link

I've somewhat achieved this by using a MutationObserver on the editor__redactor element, and save which blocks contain the 'selected' class, showing the inline toolbar manually after the mouse up event (adding the necesary classes) and then extending the Inline Tools you need to also handle cross block selections ann apply the styling to all [contenteditable=true] elements

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

6 participants