Design issue  Inserted code is deleted when composing rest of post

Brogan

XenForo moderator
Staff member
This happens in Chrome, not sure about other browsers.

Start a new thread as normal and click on the Code button to insert the code as follows:
post1.png

Then click in the editor window to continue composing the post and the next key press, e.g. Enter, results in this:
post2.png


A CTRL+Z brings the text back and then the next key press moves the focus to the top of the editor window so the cursor has to be placed back at the end of the inserted code to continue writing the post.

This happens pretty much every time.
 

Kier

XenForo developer
Staff member
Nor me. It seems to be working without a problem on Chrome for Mac. I'll dig out a Windows version to see what happens. What version are you using?
 

Kier

XenForo developer
Staff member
Can't reproduce with Chrome 8.0.552.215 beta on Windows either.
 

Brogan

XenForo moderator
Staff member
Same version as above - 8.0.552.215.
If I get the chance I'll make a video.

I suspect it's all related to Chrome though and the interaction with TinyMCE.
 

Kier

XenForo developer
Staff member
Can you reproduce it consistently, and here on these forums?
 
R

ragtek

Guest
This happend also to me with SRWare Iron (based on chromium)
 

Mike

XenForo developer
Staff member
I've finally managed to reproduce this, and the underlying issue is a nightmare. It relates to nested <p> tags that the browsers are creating when we insert the code. I can't see how it can be reasonably worked around at this point, unfortunately.
 
Top