wickedest / Mergely

Merge and diff documents online
http://www.mergely.com
Other
1.17k stars 228 forks source link

How to keep the cursor position unchanged #61

Closed tanqinwang closed 4 years ago

tanqinwang commented 7 years ago

When you enter a character, the cursor always returns to the beginning of the line. So I have to undo and redo, so that the characters can be entered normally. Is there a more effective way??

wickedest commented 7 years ago

Strange - it works on http://www.mergely.com/editor. Are you having trouble with the online version, or if you are using the component, are you using your own version of CodeMirror?

tanqinwang commented 7 years ago

when i opened http://www.mergely.com/editor, then click left panel, enter 'file', then got 'lefi', the cursor stay after the letter 'e', it's only happened in the first time, when i deleted it, re-entered , it works.

wickedest commented 7 years ago

I think you might be referring to this issue - if I open the editor, wait for it to finish loading, and then type 'e', the cursor does not stay at the end, e.g. "e|" - it changes to the first position "|e". Yes? I have seen that issue.

On 22 June 2017 at 12:06, inite notifications@github.com wrote:

when i opened http://www.mergely.com/editor, then click left panel, enter 'file', the got 'lefi', the cursor stay after the letter 'e', it's only happened in the first time, when i deleted it, re-entered , it works.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/wickedest/Mergely/issues/61#issuecomment-310348899, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1M1ynPNmAnEEfCViX2LT6-f0ss4ufuks5sGkrKgaJpZM4OCF2- .

tanqinwang commented 7 years ago

Yes, that's right. Is there a way to correct it?

wickedest commented 7 years ago

I haven't tried - it's relatively minor, but annoying.

On 22 June 2017 at 15:15, inite notifications@github.com wrote:

Yes, that's right. Is there a way to correct it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/wickedest/Mergely/issues/61#issuecomment-310393318, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1M14MbRj43fBvTGpbcTMuk996xkK0Jks5sGncagaJpZM4OCF2- .

tanqinwang commented 7 years ago

Anyway, thank you for your reply.

wickedest commented 4 years ago

fixed issue #95