UX bugs with Embed HTML code editor

I have noticed several issues editing the code property on embedded html elements.

  1. add an Embedded HTML element
  2. click on the Code property
  3. a window shows for editing code

Issue1:
I see an error where clicking on the text results in a cursor in a different position to the mouse click.


Clicking between e and x in example will put the cursor in-between a and n.
The error distance varies on different attempts.

it is not possible to move the cursor to the end of a line of text using right arrow, several letters are inaccessible. This seems to be a similar distance to the issue in A.

backspace removes from a different location to the cursor location shown.

to see the cursor drift in action, just hold down a key and watch the cursor location wrt to letters.

Issue 2:
If you edit the text, then click cancel, I would expect the changes not to be saved. It appears that the change is persisted. Note the property on Embedded HTML isn’t updated, but the changed text is shown when you reopen the editor the next time.

4 Likes

I have the same problem, i hope it will get fixed soon as i now have to copy my code to a text editor and back all the time.

1 Like

We have fixed issue #2. Canceling will not ensure the editor value is reverted to the saved value.

Unfortunately I wasn’t able to reproduce issue #1. We have recently upgraded the code editor, so I hope that just resolves the issue. If not, please let me know. I would also like to receive reproduction steps and other information like which OS and browser you are on.

@jason I am still having this issue. Is there a timeframe for issue #1 mentioned in OP’s post to be completed? Seems like this issue has been persisting for quite some time now.

Browser: Chrome - Version 129.0.6668.71 (Official Build) (64-bit)
OS: Windows 10 Home - Version 22H2 - Build 19045.4894


This is the cursor in the last character position.

I still have issue 1 too!

Hi @marnik_molehant

Unfortunately, I am unable to reproduce the issue. Could you please share steps to reproduce this issue or a sample video of it and other information such as OS and Browser version you are on?

The problem is that I don’t when it happens, sometimes it happens, sometimes not.
To fix it i have to hard refresh the page until it is back to normal.

OS: Windows 11
Browser: Chrome
Version 131.0.6778.140 (Official Build) (64-bit)

I’m sending a screenshot because i don’t know how to reproduce it myself.