Open KKIGI opened 7 months ago
Easiest way to reproduce for non-Korean speakers:
mention: {
feeds: [
{
minimumCharacters: 1,
marker: '@',
feed: [ '@뮤' ]
}
]
}
@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.
Hello, I'm not using commercial license so please remove the label support:2. Thank you.
@KKIGI it's for our internal tracking as we got a similar request.
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.