Skip to main content

RichEditSelection.isPictureSelected Property

Gets whether only a picture is selected.


readonly isPictureSelected: boolean

Property Value

Type Description

true, if only a picture is selected; otherwise, false.


This property allows you to detect when the selection consists only of a picture.

Use the isFloatingObjectSelected property to detect whether a floating or in-line picture is selected.

if (richEdit.selection.isPictureSelected)
      if (richEdit.selection.isFloatingObjectSelected)
          console.log('A floating picture is selected');
          console.log('An in-line picture is selected');

Refer to the following section for more information: Client Selection.

See Also