summaryrefslogtreecommitdiffstats
path: root/framework/qml/TextEditor.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-06-30 10:42:00 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-06-30 10:42:00 +0200
commit845e2e99fd869be1d8d12f69590131bdfb988768 (patch)
treecfbfa26eceba384d4bf838a5cef2181793e1ef9e /framework/qml/TextEditor.qml
parentc56b187779b53429e868c94e55149c14676a31cb (diff)
downloadkube-845e2e99fd869be1d8d12f69590131bdfb988768.tar.gz
kube-845e2e99fd869be1d8d12f69590131bdfb988768.zip
Preserve newlines when converting plain to html
Diffstat (limited to 'framework/qml/TextEditor.qml')
-rw-r--r--framework/qml/TextEditor.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml
index ec5993b7..e5cc665c 100644
--- a/framework/qml/TextEditor.qml
+++ b/framework/qml/TextEditor.qml
@@ -39,7 +39,7 @@ FocusScope {
39 39
40 onHtmlEnabledChanged: { 40 onHtmlEnabledChanged: {
41 if (htmlEnabled) { 41 if (htmlEnabled) {
42 var t = document.plainText 42 var t = document.htmlText
43 edit.textFormat = Qt.RichText 43 edit.textFormat = Qt.RichText
44 edit.text = t 44 edit.text = t
45 } else { 45 } else {