agusmakmun / django-markdown-editor

Awesome Django Markdown Editor, supported for Bootstrap & Semantic-UI
GNU General Public License v3.0
816 stars 1.34k forks source link

when it write korean language, appear help box #6

Open ghost opened 7 years ago

ghost commented 7 years ago

when it write Korean language, appear help box issue

agusmakmun commented 7 years ago

Hembb... perhaps it because conflict between command from default ace editor and draceditor... can you show me what keyboard that you typed to show that box?

ghost commented 7 years ago

My keyboard is Korean keyboard, like that image default

johnnylord commented 7 years ago

Sorry, is client_id equals to username , and secret_key equals password ??

agusmakmun commented 7 years ago

@johnnylord nope..

You need to register new client id here: https://api.imgur.com/oauth2/addclient

MARTOR_IMGUR_CLIENT_ID = 'your-client-id'
MARTOR_IMGUR_API_KEY   = 'your-api-key' # client secret

If you have done; you can checkout at this page: https://imgur.com/account/settings/apps

imgurapi

0p3r4t0r commented 4 years ago

Hello @betterjb, I believe we are having the same issue; I am typing in Japanese with fcitx. However, Japanese is similar to Korean because we also have an input box to select characters.

The issue seems to be with ace.js. I found a helpful ace issue link that mentions a quick solution that solves some of the problem.

However, this doesn't solve the problem that the input box is way too long.... I believe we could see improvements by updating to the latest version of ace. Will run some test and then get back to you.

some1ataplace commented 1 year ago

Maybe try this. I did not test this.

.markdown-editor {
  ime-mode: disabled;
}

Modify the onKeyDown function in the following way:

  1. Open static/markdown/jquery.markdown.js file in the django-markdown-editor directory.

  2. Find the onKeyDown function, which should look like this:

onKeyDown: function(e) {
  var help = $(document.getElementById('md_help'));
      currentTop = help.scrollTop();
      htmlNode = e.target.parentNode.childNodes[1];
}

onKeyDown: function(e) {
  var help = $(document.getElementById('md_help')),
      currentTop = help.scrollTop();
      htmlNode = e.target.parentNode.childNodes[1];
      unicodeKey = e.keyCode || e.which;
  if (unicodeKey >= 19968 && unicodeKey <= 40959) {
     help.hide();
     return;
  }