UX frustration: copy/pasting resets a block

Open
#1,689 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react
Domain
frontend, web-dev

Research direction

Start by reproducing the first and second stories in a new Docs document, comparing them with the working format-toolbar flow. Trace the editor's slash-command block creation and paste handling; done means pasting into a newly created Quote block preserves the Quote block and applying the command at a paragraph converts or otherwise handles that paragraph as expected.

Written by the indexing model from the issue text.

Description

blocknote-side bug frontend triage

Bug Report

Problematic behavior
I wanted to create a quote block from a text I'm copy/pasting.
I tried 2 ways to do it before I found the third way that works...
This caveat applies to all types of blocks.

Expected behavior/code
I feel the 2 stories detailed below should work, especially the first one.

Steps to Reproduce

First story:

  1. write a paragraph in any text editor on your computer. Copy the text to your pastbin.
  2. go to Docs and create a new document
  3. Do "/" and choose the "Quote" block You now have your cursor at the beginning of a quote block
  4. Paste the content of your pastebin
  5. The quote block is gone

Second story:

  1. go to Docs and create a new document
  2. write a paragraph
  3. Bring your cursor to the beginning of the block which now contains your paragraph.
  4. Do "/" and choose the "Quote" block
  5. A quote block is created below your paragrah but your paragraph is still a standard block

The third story that already works:

  1. go to Docs and create a new document
  2. write a paragraph
  3. select the paragraph
  4. the format toolbar appears, choose "quote" in the select box with all formats
Dominant language
Python
Stars
16.8k
Forks
638
Avg merge
1d 15h
Merged PRs (30d)
40

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from suitenumerique/docs

All issues in suitenumerique/docs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.