From 91805250658eca21f6c6b0a6909006052893cc29 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Fri, 15 Aug 2014 14:34:13 +0200 Subject: EHTMLEditorView - Remove classes that were used for marking the BR elements from converted text --- e-util/e-html-editor-view.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index 0b3212c184..be378b471f 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -4313,6 +4313,13 @@ html_editor_view_process_document_from_convertor (EHTMLEditorView *view, NULL); } + paragraph = webkit_dom_document_query_selector (document, "br.-x-evo-last-br", NULL); + if (paragraph) + webkit_dom_element_remove_attribute (paragraph, "class"); + paragraph = webkit_dom_document_query_selector (document, "br.-x-evo-first-br", NULL); + if (paragraph) + webkit_dom_element_remove_attribute (paragraph, "class"); + if (!e_html_editor_view_get_html_mode (view)) e_html_editor_selection_wrap_paragraphs_in_document ( selection, document); -- cgit v1.2.3