Report an issue
Class

CKEDITOR.plugins.undo.Image

class private

Contains a snapshot of the editor content and selection at a given point in time.

Filtering

Properties

  • bookmarks : Object[]

    readonly

    Bookmarks representing the selection in an image.Array of bookmark2 objects, see CKEDITOR.dom.range.createBookmark2 for definition.

  • contents : String

    readonly

    Editor content.

Methods

  • constructor( editor, [ contentsOnly ] ) → Image

    Creates an Image class instance.

    Parameters

    editor : editor

    The editor instance on which the image is created.

    [ contentsOnly ] : Boolean

    If set to true, the image will only contain content without the selection.

    Returns

    Image
  • equalsContent( otherImage ) → Boolean

    Parameters

    otherImage : Image

    Image to compare to.

    Returns

    Boolean

    Returns true if content in otherImage is the same.

  • equalsSelection( otherImage ) → Boolean

    Parameters

    otherImage : Image

    Image to compare to.

    Returns

    Boolean

    Returns true if selection in otherImage is the same.