in the rich text editor for PR descriptions, if i ...
# report-bugs
a
in the rich text editor for PR descriptions, if i start a blockquote (
> some text
) and try to paste some markdown content that contains a horizontal rule (
---
), it will not paste anything and will print an error in the console. if i have not started a blockquote element, it does not have this issue. will add more details in thread. also, i will do the report feedback thing on the graphite site
p
(If applicable) To help us repro, please send the following if you haven't already: - PR links, screenshots, and/or debug output if applicable - Repro steps - Does this happen consistently? Just to you or others on your team also? - Is this a regression? Is the problem new? - If you're having an issue with the CLI, please send us debug logs using
gt feedback --with-debug-context <any message>
a
for example, if the current content in the editor is:
Copy code
some text

>
and i copy this to my clipboard:
Copy code
some

---

text
and i paste it after the
>
in the editor, it does not insert any text or have any visual indication it failed at all. it silently fails and has an error logged to the console.
if i instead paste that and my cursor in the editor is not after the blockquote, it works fine
Copy code
46132-6161b2390fb8039f.js:145 

Uncaught RangeError: Empty text nodes are not allowed
    at new k (46132-6161b2390fb8039f.js:145:248471)
    at er.text (46132-6161b2390fb8039f.js:145:260483)
    at aI.transformToValidNodes (73112-9a964fa2a6af33b3.js:1:467737)
    at 73112-9a964fa2a6af33b3.js:1:466817
    at s.forEach (46132-6161b2390fb8039f.js:145:234042)
    at aI.handleMarkdownPaste (73112-9a964fa2a6af33b3.js:1:466757)
    at R.handlePaste (73112-9a964fa2a6af33b3.js:1:465287)
    at 70e0d97a-4f3acae0b4da329f.js:1:52865
    at N.someProp (46132-6161b2390fb8039f.js:1:3915185)
    at tl (70e0d97a-4f3acae0b4da329f.js:1:52839)
p
Thanks a ton for flagging and for the detailed report — we'll work on a fix 🫡
💜 1