getkirby / editor

A new type of WYSIWYG editor for Kirby
https://getkirby.com
205 stars 28 forks source link

Feature: Selecting multiple blocks #70

Open nilshoerrmann opened 5 years ago

nilshoerrmann commented 5 years ago

Currently, you cannot really select blocks: a block can be active (when you type inside), a block can be dragged (and is then somehow selected of course). But when dealing with longer texts it would be helpful to select multiple blocks at once. This would help with:

  1. Moving multiple blocks at once.
  2. Plugins interacting with multiple blocks (like wrapping those blocks in an element in the output).

Selecting could work by either click-drag from outside the blocks (similar to how you create a selection in a graphic editor) or by clicking the drag icons while holding down the shift key. Having a highlighting color would help understand what is happening:

grafik

bastianallgeier commented 5 years ago

Related: https://github.com/getkirby/editor/issues/9

m-artin commented 5 years ago

Even for quickly deleting longer lists or paragraphs this feature would be super handy.

I love this new editor!

REHvision commented 5 years ago

I think it's self-evident, but don't forget Ctrl + A to select all blocks :grin::+1:

nimi09 commented 4 years ago

I would love to see this feature to be implemented!!! You really need to copy text to other places, like Facebook & co .... the current download/export as markdown, json or html are to many steps.

Or an additional dropdown menu item to "copy all blocks as plain text" would be much appreciated ...

andreasotto commented 4 years ago

+1 any progress on this? Today i had to delete 30 paragraphs and now i need a break for my fingers.

nimi09 commented 4 years ago

this will be possible when the writer (https://github.com/getkirby/writer) will be done. If you want that to happen consider to upvote "Editor as core field #21" on the new feedback page => https://feedback.getkirby.com/

andreasotto commented 4 years ago

I only ask out of curiosity (because i don't understand): Why does it matter, if it is a plugin or a core function? Isn't the job of implementing the handling on mouse select events and keypress events the same for both situations?

Alzy commented 4 years ago

@nimi09 @bastianallgeier what's the point of creating an editor from scratch instead of building on top of Prosemirror like Editor is already doing? I've used Prosemirror in the past and don't see how this feature wouldn't be possible to do with it. In the year that this issue was posted it could have been solved by now.

igregson commented 4 years ago

Hit this while writing in the editor and finding that undoing only undoes edits in the currently-focused block. This is super important! Really love the editor but surprised to hit this poor UX. Hoping this lands soon... super not looking forward to my company's content editors hitting this and coming to me with the complaints.

Please share if there's anything further we can do to move this forward.

igregson commented 4 years ago

Looks like the issue to upvote to help increase the priority of this is https://kirby.nolt.io/21.

bastianallgeier commented 4 years ago

We are currently working on merging the editor and builder fields and bring both into the core. I know that this is an issue that many of your are facing and we are trying to solve it with the new field. You can follow along the development on Discord: https://chat.getkirby.com and also in this repo: https://github.com/getkirby/blocks