[evolution] EHTMLEditorView - Undoing the 'Wrap Lines' action doesn't work
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Undoing the 'Wrap Lines' action doesn't work
- Date: Tue, 21 Jul 2015 16:12:52 +0000 (UTC)
commit 48792a89e9187dab8295f9c74e95a2f5a638bab7
Author: Tomas Popela <tpopela redhat com>
Date: Tue Jul 21 16:33:00 2015 +0200
EHTMLEditorView - Undoing the 'Wrap Lines' action doesn't work
We need to remove the 'data-user-wrapped' attribute from the block as otherwise
the BR elements that are used to wrap won't be removed in the
remove_wrapping_from_element function.
e-util/e-html-editor-view.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 5e07c7f..8b4a003 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -12148,6 +12148,7 @@ undo_redo_wrap (EHTMLEditorView *view,
node = webkit_dom_range_get_common_ancestor_container (range, NULL);
g_object_unref (range);
element = get_parent_block_element (WEBKIT_DOM_NODE (node));
+ webkit_dom_element_remove_attribute (element, "data-user-wrapped");
remove_wrapping_from_element (WEBKIT_DOM_ELEMENT (element));
e_html_editor_view_force_spell_check_for_current_paragraph (view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]