[evolution/wip/webkit-composer: 914/966] EEditorWidget: Add paragraph class and style even for div elements
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 914/966] EEditorWidget: Add paragraph class and style even for div elements
- Date: Wed, 23 Apr 2014 11:10:16 +0000 (UTC)
commit 5ac0d9d2d54567c588afc2df5224fcc2a5e2a2dc
Author: Tomas Popela <tpopela redhat com>
Date: Tue Mar 18 15:24:36 2014 +0100
EEditorWidget: Add paragraph class and style even for div elements
e-util/e-editor-widget.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index cb41303..be23657 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -459,7 +459,8 @@ body_input_event_cb (WebKitDOMElement *element,
g_free (text);
parent = webkit_dom_node_get_parent_node (node);
- if (WEBKIT_DOM_IS_HTML_PARAGRAPH_ELEMENT (parent) &&
+ if ((WEBKIT_DOM_IS_HTML_PARAGRAPH_ELEMENT (parent) ||
+ WEBKIT_DOM_IS_HTML_DIV_ELEMENT (parent)) &&
!element_has_class (WEBKIT_DOM_ELEMENT (parent), "-x-evo-paragraph")) {
if (e_editor_widget_get_html_mode (editor_widget)) {
element_add_class (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]