diff options
-rw-r--r-- | components/kube/contents/ui/ComposerView.qml | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml index 29858767..34a2f56c 100644 --- a/components/kube/contents/ui/ComposerView.qml +++ b/components/kube/contents/ui/ComposerView.qml | |||
@@ -272,10 +272,9 @@ Kube.View { | |||
272 | 272 | ||
273 | spacing: Kube.Units.largeSpacing | 273 | spacing: Kube.Units.largeSpacing |
274 | 274 | ||
275 | Kube.Button { | 275 | Kube.Switch { |
276 | id: html | 276 | id: html |
277 | text: checked ? qsTr("plain") : qsTr("html") | 277 | text: checked ? qsTr("plain") : qsTr("html") |
278 | checkable: true | ||
279 | focusPolicy: Qt.TabFocus | 278 | focusPolicy: Qt.TabFocus |
280 | focus: false | 279 | focus: false |
281 | } | 280 | } |
@@ -347,14 +346,6 @@ Kube.View { | |||
347 | onActiveFocusChanged: closeFirstSplitIfNecessary() | 346 | onActiveFocusChanged: closeFirstSplitIfNecessary() |
348 | Keys.onEscapePressed: recipients.forceActiveFocus() | 347 | Keys.onEscapePressed: recipients.forceActiveFocus() |
349 | initialText: composerController.body | 348 | initialText: composerController.body |
350 | /** | ||
351 | * We need to: | ||
352 | * * initially load the text from the controller (for replies and whatnot) | ||
353 | * * Then only read from documenthandler in either html or plain (depending on the format). | ||
354 | * * Convert between html and plain when switching the format. | ||
355 | * * Skip invisible chars | ||
356 | * * Remove invisible chars from copied text somehow | ||
357 | */ | ||
358 | onTextChanged: composerController.body = text; | 349 | onTextChanged: composerController.body = text; |
359 | } | 350 | } |
360 | } | 351 | } |