Skip to content

Commit

Permalink
[de] Add highlight for formcheckbox
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillovIlya committed Sep 13, 2024
1 parent 6e5a3ae commit f4ce74b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions word/Editor/Paragraph/ComplexField.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ ParaFieldChar.prototype.IsVisual = function()
{
return (this.IsEnd() && (null !== this.numText || null !== this.checkBox));
};
ParaFieldChar.prototype.IsFormField = function()
{
return !!(this.checkBox);
};
ParaFieldChar.prototype.IsNeedSaveRecalculateObject = function()
{
return this.IsVisual();
Expand Down
3 changes: 3 additions & 0 deletions word/Editor/Paragraph/draw/highlight-draw-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@
flags |= FLAG_SEARCH;
else if (this.DrawColl && isCollaboration)
flags |= FLAG_COLLABORATION;

if (element.IsFormField())
flags |= FLAG_COMPLEX_FIELD;
}
break;
}
Expand Down

0 comments on commit f4ce74b

Please sign in to comment.