Commit dc7c5eeb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Look at for switch from plaintext to html

parent 8f22c537
......@@ -280,6 +280,13 @@ void RichTextComposer::activateRichText()
if (d->undoHtmlVersion.isValid() && (toPlainText() == d->undoHtmlVersion.plainText)) {
setHtml(d->undoHtmlVersion.originalHtml);
d->undoHtmlVersion.clear();
} else {
#if 0 //Need to investigate it
//try to import markdown
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
document()->setMarkdown(toPlainText(), QTextDocument::MarkdownDialectCommonMark);
#endif
#endif
}
Q_EMIT textModeChanged(d->mode);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment