ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.25k stars 3.67k forks source link

When using Korean language, mention dropdown does not show up until the composition finishes #15616

Open KKIGI opened 7 months ago

KKIGI commented 7 months ago

function getFeedItems( queryText ) { console.log(queryText); items = []; SearchTable_Proc(queryText); return new Promise( resolve => { setTimeout( () => { resolve( items ); }, 0 ); } ); }

function SearchTable_Proc(stringquery) { console.log('searchtableStart'); jQuery.ajax({ type : 'POST' ,url : my projects url ,dataType : 'json' ,contentType: 'application/json; charset=utf-8' ,data : '' ,async: false ,success : function(result) { console.log(result); if(result != null) { jQuery.each( result, function( key, value ) { let user = new Object(); user.id = '@' + value.name; user.name = value.name; user.sso_id = value.id; items.push(user); }); console.log("searchtableStart finished"); } else { console.log("result not found"); } } ,error: function(request, status, error) { console.log(request); console.log(status); console.log(error); } });

Above is my customed getFeedItems function, SearchTable_Proc function searches DB table for new Feed Items.

But when I type Mention with kroean, getFeedItems function isn't called immeidately.

Feed items are shown with the result of queryText "한동" and queryText isn't refreshed to "한동호" until I enter other key or click somewhere

Please help me with this problem.

Thank you.

FilipTokarski commented 7 months ago

Easiest way to reproduce for non-Korean speakers:

  1. Set the following mention configuration:
    mention: {
    feeds: [
        {
            minimumCharacters: 1,
            marker: '@',
            feed: [ '@뮤' ]
        }
    ]
    }
  2. Set input mode to 2-set Korean
  3. Open the editor and type @ab

Mention shows up only when composition finishes - when you type everything and press arrow down:

https://github.com/ckeditor/ckeditor5/assets/34380544/ea567f2d-0b41-436a-be6e-0afe93b71f2d

I guess the behaviour expected by @KKIGI is to have mention dropdown show up after typing the very first character (@a in this example) - when the composition is still in progress.


FYI I changed the title of this ticket to better reflect the problem.

KKIGI commented 7 months ago

Hello, I'm not using commercial license so please remove the label support:2. Thank you.

Witoso commented 7 months ago

@KKIGI it's for our internal tracking as we got a similar request.