:right-sidebar: True EditorState =================================================================== .. currentmodule:: gi.repository.WebKit .. versionadded:: 2.10 .. class:: EditorState(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Web editor state. WebKitEditorState represents the state of a :obj:`~gi.repository.WebKit.WebView` editor. Use :func:`~gi.repository.WebKit.WebView.get_editor_state` to get the WebKitEditorState of a :obj:`~gi.repository.WebKit.WebView`\. Methods ------- .. rst-class:: interim-class .. class:: EditorState :no-index: .. method:: 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. .. versionadded:: 2.10 .. method:: is_cut_available() -> bool Gets whether a cut command can be issued. .. versionadded:: 2.20 .. method:: is_paste_available() -> bool Gets whether a paste command can be issued. .. versionadded:: 2.20 .. method:: is_redo_available() -> bool Gets whether a redo command can be issued. .. versionadded:: 2.20 .. method:: is_undo_available() -> bool Gets whether an undo command can be issued. .. versionadded:: 2.20 Properties ---------- .. rst-class:: interim-class .. class:: EditorState :no-index: .. attribute:: props.typing_attributes :type: int The type of the None singleton. .. versionadded:: 2.10 Signals ------- .. rst-class:: interim-class .. class:: EditorState.signals :no-index: .. method:: changed() -> None The type of the None singleton. .. versionadded:: 2.44