diff --git a/src/chatbar/ChatBar.qml b/src/chatbar/ChatBar.qml index 280d8a626..aabad5ba4 100644 --- a/src/chatbar/ChatBar.qml +++ b/src/chatbar/ChatBar.qml @@ -253,7 +253,8 @@ QQC2.Control { placeholderText: root.currentRoom.usesEncryption ? i18nc("@placeholder", "Send an encrypted message…") : root.currentRoom.mainCache.attachmentPath.length > 0 ? i18nc("@placeholder", "Set an attachment caption…") : i18nc("@placeholder", "Send a message…") verticalAlignment: TextEdit.AlignVCenter wrapMode: TextEdit.Wrap - textFormat: TextEdit.MarkdownText + // This has to stay PlainText or else formatting starts breaking in strange ways + textFormat: TextEdit.PlainText Accessible.description: placeholderText diff --git a/src/libneochat/chatdocumenthandler.cpp b/src/libneochat/chatdocumenthandler.cpp index 43d4684a7..c0095614f 100644 --- a/src/libneochat/chatdocumenthandler.cpp +++ b/src/libneochat/chatdocumenthandler.cpp @@ -330,7 +330,7 @@ QString ChatDocumentHandler::getText() const qCWarning(ChatDocumentHandling) << "getText called with no QQuickTextDocument available."; return {}; } - return document()->toRawText(); + return document()->toPlainText(); } void ChatDocumentHandler::pushMention(const Mention mention) const