(Android) pasting with the keyboard's clipboard in code block returns only the first line

How to replicate (Everything is done with the new composer)

  1. Create a code block, a preformatted text with nothing on it

  1. Copy and paste the text using the keyboard’s clipboard function :clipboard: (In this example using Google Keyboard, haven’t tested on others)
AnkiDroid Version = 2.22.2 (44bf67dc264fa0a99d44e84ed518e3a4dd8b0367)  

Expected behaviour

  • If you use the Android paste function, press and hold, then it will paste the full text with no issues
AnkiDroid Version = 2.22.2 (44bf67dc264fa0a99d44e84ed518e3a4dd8b0367)  
Backend Version = 0.1.59-anki25.07.4 (25.07.4 e511d63b7ef57e7d7e81612a9905172b871d18df)  
Android Version = 15 (SDK 35)  
ProductFlavor = play  
Device Info = samsung | samsung | o1s | o1sxxx | SM-G991B | exynos2100  
Webview User Agent = Mozilla/5.0 (Linux; Android 15; SM-G991B Build/AP3A.240905.015.A2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/139.0.7258.62 Mobile Safari/537.36  
ACRA UUID = ec00a895-ed42-45ec-8a32-e460dcc67355  
FSRS = 4.1.1 (Enabled: true)  
Crash Reports Enabled = true

Issue was found on Anki Forum