Constants ========= .. currentmodule:: gi.repository.WebKit .. data:: EDITING_COMMAND_COPY :value: Copy The copy clipboard command. Copies the current selection inside a :obj:`~gi.repository.WebKit.WebView` to the clipboard. You can check whether it's possible to execute the command with :func:`~gi.repository.WebKit.WebView.can_execute_editing_command`. In general it's possible to copy to the clipboard when there is an active selection inside the :obj:`~gi.repository.WebKit.WebView`\. .. data:: EDITING_COMMAND_CREATE_LINK :value: CreateLink The create link command. Creates a link element that is inserted at the current cursor position. If there's a selection, the selected text will be used as the link text, otherwise the URL itself will be used. It receives the link URL as argument. This command should be executed with :func:`~gi.repository.WebKit.WebView.execute_editing_command_with_argument` .. data:: EDITING_COMMAND_CUT :value: Cut The cut clipboard command. Copies the current selection inside a :obj:`~gi.repository.WebKit.WebView` to the clipboard and deletes the selected content. You can check whether it's possible to execute the command with :func:`~gi.repository.WebKit.WebView.can_execute_editing_command`. In general it's possible to cut to the clipboard when the :obj:`~gi.repository.WebKit.WebView` content is editable and there is an active selection. .. data:: EDITING_COMMAND_INSERT_IMAGE :value: InsertImage The insert image command. Creates an image element that is inserted at the current cursor position. It receives an URI as argument, that is used as the image source. This command should be executed with :func:`~gi.repository.WebKit.WebView.execute_editing_command_with_argument`. .. data:: EDITING_COMMAND_PASTE :value: Paste The paste clipboard command. Pastes the contents of the clipboard to a :obj:`~gi.repository.WebKit.WebView`\. You can check whether it's possible to execute the command with :func:`~gi.repository.WebKit.WebView.can_execute_editing_command`. In general it's possible to paste from the clipboard when the :obj:`~gi.repository.WebKit.WebView` content is editable and clipboard is not empty. .. data:: EDITING_COMMAND_PASTE_AS_PLAIN_TEXT :value: PasteAsPlainText The paste as plaintext clipboard command. Pastes the contents of the clipboard to a :obj:`~gi.repository.WebKit.WebView`\, with formatting removed. You can check whether it's possible to execute the command with :func:`~gi.repository.WebKit.WebView.can_execute_editing_command`. In general it's possible to paste from the clipboard when the :obj:`~gi.repository.WebKit.WebView` content is editable and clipboard is not empty. .. data:: EDITING_COMMAND_REDO :value: Redo The redo command. Redoes a previously undone editing command in a :obj:`~gi.repository.WebKit.WebView`\. You can check whether it's possible to execute the command with :func:`~gi.repository.WebKit.WebView.can_execute_editing_command`. It's only possible to redo a command when it has been previously undone. .. data:: EDITING_COMMAND_SELECT_ALL :value: SelectAll The select all command. Selects all the content of the current text field in a :obj:`~gi.repository.WebKit.WebView`\. It is always possible to select all text, no matter whether the :obj:`~gi.repository.WebKit.WebView` content is editable or not. You can still check it with :func:`~gi.repository.WebKit.WebView.can_execute_editing_command`. .. data:: EDITING_COMMAND_UNDO :value: Undo The undo command. Undoes the last editing command in a :obj:`~gi.repository.WebKit.WebView`\. You can check whether it's possible to execute the command with :func:`~gi.repository.WebKit.WebView.can_execute_editing_command`. It's only possible to undo a command after a previously executed editing operation. .. data:: MAJOR_VERSION :value: 2 Like :func:`~gi.repository.WebKit.get_major_version`, but from the headers used at application compile time, rather than from the library linked against at application run time. .. data:: MICRO_VERSION :value: 6 Like :func:`~gi.repository.WebKit.get_micro_version`, but from the headers used at application compile time, rather than from the library linked against at application run time. .. data:: MINOR_VERSION :value: 46 Like :func:`~gi.repository.WebKit.get_minor_version`, but from the headers used at application compile time, rather than from the library linked against at application run time.