From 9f2626385bf9c12a240f5fd17b90304c231fba5e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 8 Oct 2017 22:37:46 +0200 Subject: Clear all formatting when converting to plain text. We used to end up with whatever formatting the current cursor had. Task: https://phabricator.kde.org/T7160 --- framework/qml/TextEditor.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/qml') diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml index 8a5c2bb9..3ce6b482 100644 --- a/framework/qml/TextEditor.qml +++ b/framework/qml/TextEditor.qml @@ -46,8 +46,8 @@ FocusScope { edit.text = t } else { var t = document.plainText + document.resetFormat() edit.textFormat = Qt.PlainText - edit.font.bold = false edit.text = t } } -- cgit v1.2.3