RichEditSelection.isFloatingObjectSelected Property
Gets whether only a floating picture or text box is selected.
Declaration
get isFloatingObjectSelected(): boolean
Property Value
Type | Description |
---|---|
boolean |
|
Remarks
This property allows you to detect when the selection consists only of a floating picture or text box.
Use the isFloatingObjectSelected and isPictureSelected properties to define whether a floating or inline picture is selected.
if (richEdit.selection.isPictureSelected)
if (richEdit.selection.isFloatingObjectSelected)
console.log('A floating picture is selected');
else
console.log('An in-line picture is selected');
Refer to the following section for more information: Client Selection.
See Also