pier-oliviert / ecrire

Blog engine for developers

Home Page:http://ecrire.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Out of focus problem

liqiang372 opened this issue · comments

I found when I tried to type ## and enter space, the caret will disappear and have to use mouse to click again to find my input position. It's not a big issue, but could be annoying sometimes. My guess is when replacing <p> with <h1>, it didn't reset the caret. Any ideas?

Hmm, what browser are you using? It shouldn't leave focus.

@pothibo chrome Version 49.0.2623.87. on mac OSX 10.10.4

I have the very same version and this isnt' happening to me. I'll look at it tonight as I find this troubling :)

@pothibo I created a gif, to help your better understanding :)

Thank you very much! Does this happen only in this scenario or every time you create a new header?

@pothibo It seems not only limited to headers. It happens to all of them. But one or two times out of ten, I can keep my caret in the right place.(and can't reproduce it) Is this weird to you? I tested using the online demo you provided. Shouldn't be my build problem.

This could be a racing condition that I haven't seen before. This gives me an idea to look for. Thank you!

Ok I have a more recent version of OS X but the very same version of Chrome. I went and typed on the editor and I have no issues whatsoever. This is bugging me so hard. Do you have an extension that you use like Adblocker or something? Could you look at the console and tell me if there's any JS error in there?

Yeah, you are right. I disabled extensions one by one and found the evil is Evernote Web Clipper . The editor worked as I turned it off.
The version is 6.7.1 from chrome app store.

Thank you for clarifying the issue with me. I'll keep this bug open a little longer just so I can test out if there's a way to fix it for you. However, I might not be able due to the way plugin inject themselves into pages. I'll keep you updated on my finding

Since the Editor is now outside of Ecrire, I should close this issue. Feel free to reopen it @ https://github.com/pothibo/written if you have it. (Written has seen a lot of updates so I doubt it still is relevant)