WebKit2.WebView.prototype.set_editable

function set_editable(editable: Boolean): void {
    // Gjs wrapper for webkit_web_view_set_editable()
}
  

Sets whether the user is allowed to edit the HTML document.

If editable is true, web_view allows the user to edit the HTML document. If editable is false, an element in web_view's document can only be edited if the CONTENTEDITABLE attribute has been set on the element or one of its parent elements. By default a WebKit2.WebView is not editable.

Normally, a HTML document is not editable unless the elements within the document are editable. This function provides a way to make the contents of a WebKit2.WebView editable without altering the document or DOM structure.

Since 2.8

editable

a #gboolean indicating the editable state