mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
[all] Add method to get user color
This commit is contained in:
@ -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'] || {};
|
||||
|
||||
Reference in New Issue
Block a user