diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-08-27 21:53:30 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-08-27 22:12:02 +0800 |
commit | 94ac03022048a12b6a43c970ab6a95eef865e7b6 (patch) | |
tree | 4f97ca43a513d498f19f03a945ef77b4041edbb2 /composer/e-composer-private.c | |
parent | f382078b3478585c628cb6493214c9b57f32b66c (diff) | |
download | gsoc2013-evolution-94ac03022048a12b6a43c970ab6a95eef865e7b6.tar gsoc2013-evolution-94ac03022048a12b6a43c970ab6a95eef865e7b6.tar.gz gsoc2013-evolution-94ac03022048a12b6a43c970ab6a95eef865e7b6.tar.bz2 gsoc2013-evolution-94ac03022048a12b6a43c970ab6a95eef865e7b6.tar.lz gsoc2013-evolution-94ac03022048a12b6a43c970ab6a95eef865e7b6.tar.xz gsoc2013-evolution-94ac03022048a12b6a43c970ab6a95eef865e7b6.tar.zst gsoc2013-evolution-94ac03022048a12b6a43c970ab6a95eef865e7b6.zip |
When changing the composer mode from HTML to Plain Text avoid reloading of the web view
Also preserve the selection (if it is possible) when changing the mode.
Diffstat (limited to 'composer/e-composer-private.c')
-rw-r--r-- | composer/e-composer-private.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c index 569cc4d6ae..79bba3dfe6 100644 --- a/composer/e-composer-private.c +++ b/composer/e-composer-private.c @@ -859,18 +859,6 @@ composer_move_caret (EMsgComposer *composer) WEBKIT_DOM_ELEMENT (body), "data-message", "", NULL); new_range = webkit_dom_document_create_range (document); - element = webkit_dom_document_get_element_by_id (document, "-x-evo-caret-position"); - /* Caret position found => composer mode changed */ - if (element) { - e_html_editor_selection_restore_caret_position (editor_selection); - /* We want to force spellcheck just in case that we switched to plain - * text mode (when switching to html mode, the underlined words are - * preserved */ - if (!html_mode) - e_html_editor_view_force_spell_check (view); - return; - } - /* If editing message as new don't handle with caret */ if (composer->priv->is_from_message || composer->priv->is_from_draft) { if (composer->priv->is_from_message) |