diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-06-18 16:28:18 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-06-18 16:28:18 +0800 |
commit | 51dcc0b786b54f9169c000e2465a2c3a3ee89cb5 (patch) | |
tree | e139d04e064ae37c6b9bd9e970b8fa970a005b6a /e-util/e-html-editor-page-dialog.c | |
parent | 3ef3e963573965827a6b72b8096e15b24c2db77f (diff) | |
download | gsoc2013-evolution-51dcc0b786b54f9169c000e2465a2c3a3ee89cb5.tar gsoc2013-evolution-51dcc0b786b54f9169c000e2465a2c3a3ee89cb5.tar.gz gsoc2013-evolution-51dcc0b786b54f9169c000e2465a2c3a3ee89cb5.tar.bz2 gsoc2013-evolution-51dcc0b786b54f9169c000e2465a2c3a3ee89cb5.tar.lz gsoc2013-evolution-51dcc0b786b54f9169c000e2465a2c3a3ee89cb5.tar.xz gsoc2013-evolution-51dcc0b786b54f9169c000e2465a2c3a3ee89cb5.tar.zst gsoc2013-evolution-51dcc0b786b54f9169c000e2465a2c3a3ee89cb5.zip |
EHTMLEditor - When setting the body background image set it as its base64 data instead of uri
Diffstat (limited to 'e-util/e-html-editor-page-dialog.c')
-rw-r--r-- | e-util/e-html-editor-page-dialog.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/e-util/e-html-editor-page-dialog.c b/e-util/e-html-editor-page-dialog.c index 53c8fce8c7..27552576c6 100644 --- a/e-util/e-html-editor-page-dialog.c +++ b/e-util/e-html-editor-page-dialog.c @@ -270,8 +270,12 @@ html_editor_page_dialog_set_background_image (EHTMLEditorPageDialog *dialog) GTK_FILE_CHOOSER ( dialog->priv->background_image_filechooser)); - webkit_dom_html_body_element_set_background ( - WEBKIT_DOM_HTML_BODY_ELEMENT (body), uri ? uri : ""); + if (uri && *uri) { + e_html_editor_selection_replace_image_src ( + e_html_editor_view_get_selection (view), + WEBKIT_DOM_ELEMENT (body), + uri); + } g_free (uri); } |