jaredly / hexo-admin

An Admin Interface for Hexo
http://jaredly.github.io/hexo-admin/
1.77k stars 299 forks source link

cursor problems from CodeMirror linewrap #124

Closed xbotao closed 7 years ago

xbotao commented 7 years ago

when the line wrap auto, the cursor will like this: qq 20170223223352

pirtleshell commented 7 years ago

I'm sorry, I'm not able to reproduce this on chrome or firefox. It's possible my CSS changes to accommodate firefox caused this, but wrapped lines correctly display the cursor for me.

Does this happen for all long lines you have?

Although the ends of long lines are hard for me to select...I can only choose a location on the first line of a wrapped area.

It looks like the problem is because CodeMirror is flexing, there's discrepancy between how long the js thinks the lines are vs how long they actually are. There appear to be many browser problems that cause CodeMirror to not display properly in flexbox. I'll work on a solution to the un-selectable lines and see if it fixes your problem.

pirtleshell commented 7 years ago

I also updated codemirror. Please see if that fixes the cursor trouble you were having.

xbotao commented 7 years ago

There is a build error for me. #126