Skip to main content
Associate II
April 7, 2026
Question

Bug when pasting code in reply

  • April 7, 2026
  • 2 replies
  • 221 views

Tried to paste code in reply. Noticed, that line count does not match. Clicked in editor and it started to duplicate.

image.png

Also check out attached video.

In order to reproduce the bug, longer code must be pasted in C code insert tool from tool bar. Then mouse pointer must be navigated at the end of inserted code and clicked few times here and there. Inserted code will start to duplicate in editor. 

2 replies

Lina_DABASINSKAITE
Community Manager
April 9, 2026

Hi @featherbits,

Thanks for reporting this. We are investigating this behavior and will be get back once I have news. 

Regards,
Lina

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Andrew Neil
Super User
April 9, 2026

Yes, I have often seen this happening - it's very annoying.

Have you found a way to get out of this state?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
April 9, 2026

I have not found a way. I think for now solution would be to just not do anything that triggers the bug. Clicking inside pasted code and dragging seems to cause the issue. I think javascript library of the editor just hangs some event handler and app stays in bad state. Can be seen in developers console when bug gets triggered:

Uncaught TypeError: Cannot read properties of undefined (reading 'files')
 at setUpMedia (lia-scripts-tinymce-min.js:56504:41)

 

Andrew Neil
Super User
April 9, 2026

No - I've never found a way, either.

Only way seems to be to cancel the post.

 

@Lina_DABASINSKAITE it's not just pasted code - same happens if it's a code block you've created from scratch in a post (new post or editing):

AndrewNeil_0-1775727806774.png

It seems like the editor thinks you want to drag the code block - but has no way to then let you "drop" it!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.