jaredly / hexo-admin

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

Input Chinese error #99

Closed xbotao closed 7 years ago

xbotao commented 7 years ago

If I input Chinese @ line 4, it will return to line 3. the hexo-admin is the current github version. like this:

1 fsdfsdafadsf
2 fasdfasdfsadfa
3
4 | 在此输入中文 input Chinese here  

the result is

1 fsdfsdafadsf
2 fasdfasdfsadfa
3 在此输入中文 input Chinese here  

or

1 fsdfsdafadsf
2 fasdfasdfsadfa
3 | 在此输入中文 input Chinese here  

the result is

1 fsdfsdafadsf
2 fasdfasdfsadfa在此输入中文 input Chinese here  

But the npm version hexo-admin@2.1.0 dose not have this problem.

xbotao commented 7 years ago

And In the editor page, the button F12 have no effect.

pirtleshell commented 7 years ago

I'm unable to reproduce your error.

image

Leaving and coming back to the editor, viewing the prievew on the posts list, or refreshing the page does not result in the content changing.

The primary difference between the current github version and the npm version is that the github version uses the latest version of codemirror. The problem might have something to do with that, but I didn't see the error you explained when using the github version.

Also, what do you expect F12 to do?

xbotao commented 7 years ago

Paste Chinese is not have this issue, it just appear on typing in Chinese by the Chinese typewriting.

F12 will toggle the develop tools of firefox.


I will test it on ubuntu later.

pirtleshell commented 7 years ago

Hmm.. Sounds like a codemirror problem. Take a look around its current issues. Strange that you say it worked in the previous release. Here are the old and new codemirror versions.

xbotao commented 7 years ago

It's ok when tying Chinese on ubuntu@16.04.

pirtleshell commented 7 years ago

Were you able to figure out where the problem was with this?

xbotao commented 7 years ago

It apeared on the windows when tying in Chinese. I think the peoblem apear that beacuse the input method's working principle. When tying in a string, will get a key-down message, and char code is 229 at the beginning. After input the string, will get a key-message. The github editor has the same peoblem.

发自我的 iPhone

在 2017年1月22日,上午10:00,o Pirtle notifications@github.com 写道:

Were you able to figure out where the problem was with this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

xbotao commented 7 years ago

I use firfox before,and I will test it on the Chrome later.

xbotao commented 7 years ago

I install Hexo and Hexo-admin with the vison on the github on another computer. There's no the problem. Sorry,! I guess the problem apears by my misoperation.