django-markdown-editor icon indicating copy to clipboard operation
django-markdown-editor copied to clipboard

when it write korean language, appear help box

Open ghost opened this issue 7 years ago • 6 comments

when it write Korean language, appear help box issue

ghost avatar Apr 07 '17 10:04 ghost

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?

agusmakmun avatar Apr 07 '17 13:04 agusmakmun

My keyboard is Korean keyboard, like that image default

betterjb avatar Apr 17 '17 03:04 betterjb

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

johnnylord avatar Oct 04 '17 11:10 johnnylord

@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

agusmakmun avatar Oct 04 '17 12:10 agusmakmun

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.

0p3r4t0r avatar Nov 27 '19 00:11 0p3r4t0r

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;
  }

some1ataplace avatar Apr 05 '23 02:04 some1ataplace