Source/WebKit/gtk/webkit/webkitwebview.cpp
void webkit_web_view_set_editable(WebKitWebView* webView, gboolean flag)
{
    g_return_if_fail(WEBKIT_IS_WEB_VIEW(webView));

    flag = flag != FALSE;
    if (flag == webkit_web_view_get_editable(webView))
        return;

    core(webView)->setEditable(flag);

    Frame* frame = core(webView)->mainFrame();
    g_return_if_fail(frame);

    if (flag) {
        frame->editor()->applyEditingStyleToBodyElement();
        // TODO: If the WebKitWebView is made editable and the selection is empty, set it to something.
        //if (!webkit_web_view_get_selected_dom_range(webView))
        //    mainFrame->setSelectionFromNone();
    }
    g_object_notify(G_OBJECT(webView), "editable");
}
/**
 * webkit_web_view_set_editable:
 * @webView: a #WebKitWebView
 * @flag: a #gboolean indicating the editable state
 *
 * Sets whether @web_view allows the user to edit its HTML document.
 *
 * If @flag is %TRUE, @web_view allows the user to edit the document. If @flag 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. You can change @web_view's document programmatically regardless of
 * this setting. By default a #WebKitWebView is not editable.

 * Normally, an HTML document is not editable unless the elements within the
 * document are editable. This function provides a low-level way to make the
 * contents of a #WebKitWebView editable without altering the document or DOM
 * structure.
 */
@webView: a #WebKitWebView
@flag: a #gboolean indicating the editable state

Sets whether @web_view allows the user to edit its HTML document.

If @flag is %TRUE, @web_view allows the user to edit the document. If @flag 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. You can change @web_view's document programmatically regardless of
this setting. By default a #WebKitWebView is not editable.

Normally, an HTML document is not editable unless the elements within the
document are editable. This function provides a low-level way to make the
contents of a #WebKitWebView editable without altering the document or DOM
structure.
@webView : a #WebKitWebView @flag : a #gboolean indicating the editable state Sets whether @web_view allows the user to edit its HTML document . If @flag is %TRUE @web_view allows the user to edit the document . If @flag 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 . You can change @web_view ' s document programmatically regardless of this setting . By default a #WebKitWebView is not editable . Normally an HTML document is not editable unless the elements within the document are editable . This function provides a low - level way to make the contents of a #WebKitWebView editable without altering the document or DOM structure .
void webkit_web_view_set_editable(WebKitWebView* webView, gboolean flag)
{
    g_return_if_fail(WEBKIT_IS_WEB_VIEW(webView));
    flag = flag != FALSE;
    if (flag == webkit_web_view_get_editable(webView))
        return;
    core(webView)->setEditable(flag);
    Frame* frame = core(webView)->mainFrame();
    g_return_if_fail(frame);
    if (flag) {
        frame->editor()->applyEditingStyleToBodyElement();
    }
    g_object_notify(G_OBJECT(webView), "editable");
}
void webkit_web_view_set_editable ( WebKitWebView * webView , gboolean flag ) { g_return_if_fail ( WEBKIT_IS_WEB_VIEW ( webView ) ) ; flag = flag != FALSE ; if ( flag == webkit_web_view_get_editable ( webView ) ) return ; core ( webView ) -> setEditable ( flag ) ; Frame * frame = core ( webView ) -> mainFrame ( ) ; g_return_if_fail ( frame ) ; if ( flag ) { frame -> editor ( ) -> applyEditingStyleToBodyElement ( ) ; } g_object_notify ( G_OBJECT ( webView ) , " " ) ; }
webkit_web_view_set_editable:
 @webView: a #WebKitWebView
 @flag: a #gboolean indicating the editable state
webkit_web_view_set_editable : @webView : a #WebKitWebView @flag : a #gboolean indicating the editable state
// TODO: If the WebKitWebView is made editable and the selection is empty, set it to something. //if (!webkit_web_view_get_selected_dom_range(webView)) //    mainFrame->setSelectionFromNone();