[evolution/gnome-3-18] EHTMLEditorView - Only process the Heading elements in HTML mode
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] EHTMLEditorView - Only process the Heading elements in HTML mode
- Date: Tue, 29 Sep 2015 08:41:39 +0000 (UTC)
commit 8fb0274f815777d505e2ce5935090bbd16a85a65
Author: Tomas Popela <tpopela redhat com>
Date: Tue Sep 29 09:11:27 2015 +0200
EHTMLEditorView - Only process the Heading elements in HTML mode
e-util/e-html-editor-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 53d40bf..26f9187 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2729,7 +2729,8 @@ body_input_event_cb (WebKitDOMElement *element,
if (view->priv->return_key_pressed || view->priv->space_key_pressed) {
html_editor_view_check_magic_links (view, range, FALSE);
if (view->priv->return_key_pressed) {
- if (fix_paragraph_structure_after_pressing_enter (selection, document)) {
+ if (fix_paragraph_structure_after_pressing_enter (selection, document) &&
+ view->priv->html_mode) {
/* When the return is pressed in a H1-6 element, WebKit doesn't
* continue with the same element, but creates normal paragraph,
* so we have to unset the bold font. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]