-
Notifications
You must be signed in to change notification settings - Fork 18
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
Initial commit of experimental Draft block #208
base: master
Are you sure you want to change the base?
Conversation
Nice work. This is what I see: The primary win is that the partial text-selection affordances you see in text editors is available here. I miss contacting two paragraphs into one too at times, and when I do, I jump into my separate Markdown editor, knowing that copy/paste just shines in the block editor. In fact, I'd love to see partial selections come to the vanilla paragraph block directly, a feat that seems within reach if given the effort. That's also where I think this block might have a challenge. Partial selections are nice, but on their own I'm not sure they are worth the overhead of an entirely separate block having to be inserted first. I'm also not sure I agree this block makes for a less distracting writing flow than vanilla paragraphs: the "Finalize content" button has a fair bit of prominence, there's a permanent notice for editors, and the dashed line around the block all serve to add visual noise and depart from WYSIWYG where paragraph blocks do not. "Draft" is a great name, though. Are there other features it could offer in addition to partial selections that might lean into that concept? |
Thanks for the feedback @jasmussen, all good valid questions - got tied up today with other things, but will try and respond tomorrow. |
Just took this for a spin. It's working very well! A few ideas occurred to me: Would it be useful to detect list bullet points and transform lists when finalizing? Or maybe even auto-adding the bullet points, similar to how Github textinputs do? This is just a personal observation as I do make a lot of lists when drafting notes :D My favourite functionality is that I can add content to a post, publish but still have that content hidden on the frontend. I'm thinking that it would be interesting to extend the Draft block to be able to house any block/pattern - sort of like a Group block but for drafts 😄 On the frontend, perhaps it would be handy to indicate the areas which are drafts and not published to a logged-in editor: But then I realized that it would be equally handy to see how the content would look without such indicators. Not sure, just a brain dump here. Thanks! |
It needs to be clear why it's not on the frontend, and how you make it shown. But I think you're on to something here, it's leans into the "Draft" idea and provides a niche. What other tools does it enable? While I'm still overall skeptic of broad adoption, embracing this flow could make it just the block for a particular group of people. |
Thanks for the feedback @jasmussen and @ramonjd, and sorry about the delay in responding.
The reasoning behind these bits of additional UI was an initial thought that we may not want to see the block used as the final block on the page - the risk being that people would then start wondering why they can't add images, or more complex layout once they have finished writing the text. Maybe there would be better UX to indicate this. Or as you also note, maybe the the copying and pasting of text between paragraphs can be handled better within the editor, in which case, maybe the focus should be on the other thing this block brought to light which is the ability to add draft content anywhere within a new or existing page.
Yeh I think this could be a really useful block, but I think it is something very different to what this initial draft block was intended, but could be created as a completely separate block as you not, or as some extensions to the Group block. Will give all this some further thought before going any further with this. |
Given that this approach goes against some of the initial deliberate design decisions in the editor (pcjTuq-nG-p2) I am just going to close this for now. It has been useful for exposing some ideas about a draft content option if nothing else. |
Description
One of the criticisms of the Block editor, particularly from those that are used to the Classic editor, is that it has a distracting interface for long form writing. While it is possible to reduce the noise by pinning the toolbar to the top, there are still issues with editing compared to a standard text editor, particularly if trying to copy segments of text that span paragraphs, ie. copying the last sentence of one paragraph and the first of another:
While this may not be common when editing basic web pages, I can see how this would be a very common annoyance for long form writing.
The intention of this new 'Draft' block is to allow for easy writing/editing of long form articles with only very basic text formatting options, and conversion of the content to paragraph blocks once editing is finished to allow for more complex layout and formatting at that point:
The advantage of this approach is that basic writing and text editing is much more fluid and similar the the usual text editor experience.
Some more background discussion at pcjTuq-nG-p2