cancel
Showing results for 
Search instead for 
Did you mean: 

Bug when pasting code in reply

featherbits
Associate II

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. 

Very new to the HW
5 REPLIES 5
Lina_DABASINSKAITE
Community manager

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

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.

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)

 

Very new to the HW

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.

Thanks, @Andrew Neil. I passed it to the team investigating it. 


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.