slab / quill

Quill is a modern WYSIWYG editor built for compatibility and extensibility
https://quilljs.com
BSD 3-Clause "New" or "Revised" License
42.3k stars 3.31k forks source link

Copy: when copying a header element, the heading is not preserved #4238

Open meierwerthan1 opened 1 month ago

meierwerthan1 commented 1 month ago

When copying text formatted as a header within quilljs the header format is not preserved

Steps for Reproduction

  1. Visit quilljs.com
  2. Go to the playground
  3. Type "Hello World"
  4. Format the text as Heading 1
  5. Select the text
  6. Copy the text
  7. Then paste on a line below
Details https://github.com/slab/quill/assets/86309610/8c024465-c05f-4957-85ea-94ab23076b05

Expected behavior: Heading is preserved when copied and pasted element has heading format

Actual behavior: Heading is not preserved and pasted element has plain text format

Platforms: Chrome Version 125.0.6422.141 MacOS

Version: 2.0.2