EditorState#

Added in version 2.10.

class EditorState(**properties: Any)#

Superclasses: Object

Web editor state.

WebKitEditorState represents the state of a WebView editor. Use get_editor_state() to get the WebKitEditorState of a WebView.

Methods#

class EditorState
get_typing_attributes() int#

Gets the typing attributes at the current cursor position.

If there is a selection, this returns the typing attributes of the selected text. Note that in case of a selection, typing attributes are considered active only when they are present throughout the selection.

Added in version 2.10.

is_cut_available() bool#

Gets whether a cut command can be issued.

Added in version 2.20.

is_paste_available() bool#

Gets whether a paste command can be issued.

Added in version 2.20.

is_redo_available() bool#

Gets whether a redo command can be issued.

Added in version 2.20.

is_undo_available() bool#

Gets whether an undo command can be issued.

Added in version 2.20.

Properties#

class EditorState
props.typing_attributes: int#

The type of the None singleton.

Added in version 2.10.

Signals#

class EditorState.signals
changed() None#

The type of the None singleton.

Added in version 2.44.