mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Add possibility to specify the color when turning on the highlight of the content control
This commit is contained in:
@ -8109,7 +8109,7 @@ background-repeat: no-repeat;\
|
||||
var oColor = oLogicDocument.GetSdtGlobalColor();
|
||||
return new Asc.asc_CColor(oColor.r, oColor.g, oColor.b);
|
||||
};
|
||||
asc_docs_api.prototype.asc_SetGlobalContentControlShowHighlight = function(isShow)
|
||||
asc_docs_api.prototype.asc_SetGlobalContentControlShowHighlight = function(isShow, r, g, b)
|
||||
{
|
||||
var oLogicDocument = this.private_GetLogicDocument();
|
||||
if (!oLogicDocument)
|
||||
@ -8119,6 +8119,9 @@ background-repeat: no-repeat;\
|
||||
oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_SetGlobalSdtShowHighlight);
|
||||
oLogicDocument.SetSdtGlobalShowHighlight(isShow);
|
||||
|
||||
if (undefined !== r && undefined !== g && undefined !== b)
|
||||
oLogicDocument.SetSdtGlobalColor(r, g, b);
|
||||
|
||||
oLogicDocument.GetDrawingDocument().ClearCachePages();
|
||||
oLogicDocument.GetDrawingDocument().FirePaint();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user