neos-ui icon indicating copy to clipboard operation
neos-ui copied to clipboard

Feature Request: Quick content node insert button

Open putzwasser opened this issue 4 years ago • 4 comments

I recently looked into writing on medium. I noticed the editor had a very nice feature which would improve the writing experience on neos. Every time you insert a blank line, you'll get shown a plus-icon:

image

If you click it it lets you add a component (e.g. an unsplash picture or a video embed, etc.):

image

When I write content on neos and find I need a new content node (e.g. a picutre content node) in the middle of an existing text content node (e.g. Neos.NodeTypes:Text), I need to add the desired content node and a new text content node. Then, I need to cut and paste the part of the text which goes below the newly added content node.

If it were possible to implement the plus icon which automatically split the existing text content node into half and inserted the new content node between the two split text content nodes, this would increase the content creation flow dramatically (IMHO).

It could also speed up content creation in general. The editor could always add a (non-persistent) text node below the last content node (if that's not a text node itself). If I use it, it gets saved. This way editors would save the time to create text nodes after other content nodes (e.g. pictures). One would need to configure which node gets added automatically, of course.

Also, clicking the plus icon could reveal the most used or a predefined set of favorite content node types to add as well as a »more« button which shows the classic insert node modal.

putzwasser avatar Sep 04 '21 16:09 putzwasser

Hi, i this plugin tries to solve that: https://github.com/psmb/Psmb.SplitAdd

This feature 'structured editing' was also discussed alot in the discuss here: https://discuss.neos.io/t/structured-editing-and-tighter-integration-with-cke5/3539 and here https://discuss.neos.io/t/structured-editing-within-cke5/4350/8 but i dont think a solution has been found to solve this well.

mhsdesign avatar Sep 04 '21 17:09 mhsdesign

I had to think of Psmb.SplitAdd immediately, too. Maybe we should add that to the UI?

@dimaip Would anything speak against that from your side?

kdambekalns avatar Sep 06 '21 06:09 kdambekalns

@kdambekalns uhh SplitAdd is a horrible hack that works kinda nicely... The better solutions are described in the linked threads, but those would require a lot of effort to implement... So I don't really know what's best to do here.

dimaip avatar Sep 06 '21 09:09 dimaip

@kdambekalns The better solutions are described in the linked threads, but those would require a lot of effort to implement... So I don't really know what's best to do here.

Making the feature available now get's my vote! 🤷‍♂️

kdambekalns avatar Nov 15 '21 09:11 kdambekalns