[evolution] EHTMLEditorView - Remove classes that were used for marking the BR elements from converted text
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Remove classes that were used for marking the BR elements from converted text
- Date: Fri, 15 Aug 2014 12:36:50 +0000 (UTC)
commit 91805250658eca21f6c6b0a6909006052893cc29
Author: Tomas Popela <tpopela redhat com>
Date: Fri Aug 15 14:34:13 2014 +0200
EHTMLEditorView - Remove classes that were used for marking the BR elements from converted text
e-util/e-html-editor-view.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 0b3212c..be378b4 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]