WebKit.EditorState¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when the #WebKitEdtorState is changed. |
Fields¶
- Inherited:
Class Details¶
- class WebKit.EditorState(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Web editor state.
WebKit.EditorState
represents the state of aWebKit.WebView
editor. UseWebKit.WebView.get_editor_state
() to get theWebKit.EditorState
of aWebKit.WebView
.New in version 2.10.
- get_typing_attributes()¶
- Returns:
a bitmask of
WebKit.EditorTypingAttributes
flags- Return type:
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.
New in version 2.10.
- is_copy_available()¶
-
Gets whether a copy command can be issued.
New in version 2.20.
- is_cut_available()¶
-
Gets whether a cut command can be issued.
New in version 2.20.
- is_paste_available()¶
-
Gets whether a paste command can be issued.
New in version 2.20.
- is_redo_available()¶
-
Gets whether a redo command can be issued.
New in version 2.20.
Signal Details¶
- WebKit.EditorState.signals.changed(editor_state)¶
- Signal Name:
changed
- Flags:
- Parameters:
editor_state (
WebKit.EditorState
) – The object which received the signal
Emitted when the #WebKitEdtorState is changed.
New in version 2.44.
Property Details¶
- WebKit.EditorState.props.typing_attributes¶
-
Bitmask of
WebKit.EditorTypingAttributes
flags. SeeWebKit.EditorState.get_typing_attributes
() for more information.New in version 2.10.