From fe3463615a79e8e0a56f7111f22806825e790d27 Mon Sep 17 00:00:00 2001 From: Robert Lamacraft Date: Tue, 28 May 2024 14:48:39 +0100 Subject: [PATCH] Show all users in mentions list --- .../webapp/controller/MessageAndRequestController.java | 5 ----- .../pages/workspace/editor/tinymce5_configuration.js | 6 ++++++ src/main/webapp/styles/pages/workspace/workspace.css | 5 +++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/researchspace/webapp/controller/MessageAndRequestController.java b/src/main/java/com/researchspace/webapp/controller/MessageAndRequestController.java index 6d9727bcb..f968069ab 100644 --- a/src/main/java/com/researchspace/webapp/controller/MessageAndRequestController.java +++ b/src/main/java/com/researchspace/webapp/controller/MessageAndRequestController.java @@ -172,11 +172,6 @@ public AjaxReturnObject> getRecipients( if (shouldAddToRecipients(user, subject)) { userInfos.add(user.toBasicInfo()); } - /* recipients list displayed in autocomplete shows only 10 users, - * so no need to return more from the server (see RSPAC-1252) */ - if (userInfos.size() > 10) { - break; - } } if (userInfos.isEmpty()) { ErrorList errors = diff --git a/src/main/webapp/scripts/pages/workspace/editor/tinymce5_configuration.js b/src/main/webapp/scripts/pages/workspace/editor/tinymce5_configuration.js index 032f84f47..658dc9856 100644 --- a/src/main/webapp/scripts/pages/workspace/editor/tinymce5_configuration.js +++ b/src/main/webapp/scripts/pages/workspace/editor/tinymce5_configuration.js @@ -243,6 +243,12 @@ var tinymcesetup = { // 'mention' plugin comes from https://github.com/StevenDevooght/tinyMCE-mention mentions: { + items: Infinity, + + renderDropdown: function() { + return ''; + }, + // get the items to be shown in the pop up box source(query, process, delimiter) { let id = $('.rs-global-id a:not(.recordInfoIcon)').text().replace(/\D/g, ''); diff --git a/src/main/webapp/styles/pages/workspace/workspace.css b/src/main/webapp/styles/pages/workspace/workspace.css index faf4083ca..8ea914a75 100644 --- a/src/main/webapp/styles/pages/workspace/workspace.css +++ b/src/main/webapp/styles/pages/workspace/workspace.css @@ -614,3 +614,8 @@ img[id^="sharedStatusImg_"], .witnessedImg, .favoriteImg { #fileBrowsing #fancyTree { padding-bottom: 5px; } + +.mentions-list-wrapper { + height: 10rem; + overflow-y: auto; +}