diff --git a/commons-extension-webapp/src/main/webapp/eXoPlugins/tagSuggester/plugin.js b/commons-extension-webapp/src/main/webapp/eXoPlugins/tagSuggester/plugin.js index 6d89aa3a32..9c820f606b 100644 --- a/commons-extension-webapp/src/main/webapp/eXoPlugins/tagSuggester/plugin.js +++ b/commons-extension-webapp/src/main/webapp/eXoPlugins/tagSuggester/plugin.js @@ -37,6 +37,13 @@ require(['SHARED/jquery', 'SHARED/tagSuggester'],function($) { // Define the function that will be fired when the command is executed. exec: function( editor ) { editor.insertText('#'); + setTimeout(() => { + const editable = editor.editable?.() || editor.element; + const $editable = $(editable.$ || editable); + $editable.trigger('input').trigger('keyup').trigger('focus'); + const atwhoData = $editable.data('atwho'); + atwhoData?.['#']?.controller?.view?.show(); + }, 50); document.dispatchEvent(new CustomEvent('editor-option-added', {detail: 'useHash'})); } }); @@ -72,4 +79,4 @@ require(['SHARED/jquery', 'SHARED/tagSuggester'],function($) { }); } }); -}); \ No newline at end of file +});