Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.0 Beta1
-
None
-
fdbacf2d5 (dev), 71f61f903 (6.7), bc1bdd0e1 (dev), 206a1fa2a (6.7), 6b8bf79a5 (6.7.0)
Description
So we can fix that: QQuickTextDocumentPrivate::load() can check editor->textFormat().
The next problem then is a sort of initialization race condition:
TextEdit {
textDocument.source: "whatever.md"
textFormat: TextEdit.PlainText
}
textFormat might not be set yet at the time that QQuickTextDocumentPrivate::load() runs. So it needs to be delayed. A workaround is to set source in Component.onCompleted.
Attachments
Issue Links
- resulted in
-
QTBUG-122985 toggling TextEdit.format back and forth between AutoText and PlainText loses markdown after a couple of times
- Closed
For Gerrit Dashboard: QTBUG-120772 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
529901,19 | Respect TextEdit.textFormat in TextDocument load(); detect format | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
542218,2 | Respect TextEdit.textFormat in TextDocument load(); detect format | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
545309,6 | Keep markup when toggling TextEdit.format: AutoText / PlainText | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
546543,2 | Keep markup when toggling TextEdit.format: AutoText / PlainText | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
546545,2 | Keep markup when toggling TextEdit.format: AutoText / PlainText | 6.7.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |