From 5cfd8bd730c8f7dfb3d51adb05eb248ea074ab00 Mon Sep 17 00:00:00 2001 From: KirillovIlya Date: Wed, 21 Feb 2024 19:50:52 +0300 Subject: [PATCH] [all] Add method to get user color --- common/apiBase.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/apiBase.js b/common/apiBase.js index 2047d986f0..345af50e7b 100644 --- a/common/apiBase.js +++ b/common/apiBase.js @@ -4814,6 +4814,11 @@ callback(null); } }; + + baseEditorsApi.prototype["asc_getUserColorById"] = function(id) + { + return '#' + ('000000' + AscCommon.getUserColorById(id, null, false, true).toString(16)).substr(-6); + }; //----------------------------------------------------------export---------------------------------------------------- window['AscCommon'] = window['AscCommon'] || {};