Mention determine focus after drag ansd drop #13742
Labels
resolution:resolved
This issue was already resolved (e.g. by another ticket).
squad:core
Issue to be handled by the Core team.
type:question
This issue asks a question (how to...).
📝 Mention by drag and drop
Here is example how we determine position . Where we put mention item.
It would be great to determine the focus in the place where the element was thrown on the drag drop.
const focus = editor.model.document.selection.focus;
editor.execute( 'mention', {
marker: '#',
mention: {
id: '#1234',
name: 'Foo',
title: 'Big Foo'
},
range: model.createRange( focus, focus.getShiftedBy( -1 ) )
} );
What is the expected behavior of the proposed feature?
It would be great to determine the focus in the place where the element was thrown on the drag & drop
and inserting a mention in the place where it is thrown.
Is this possible for now ?
If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: