Can TMSFMXNativeNSRichTextView import from HTML
Joined: 06 May 2014
Topic: Can TMSFMXNativeNSRichTextView import from HTML
Posted: 05 Dec 2014 at 2:49pm
I'm considering purchasing the mCL controls. The make or break criteria is that after I create a document, apply styling (change fonts, change colors of some text, etc.) if I export the document to HTML can I later import that HTML document and have all of the formatting changes still be there?
I read the documentation and it's not clear to me whether the formatting changes are preserved from exporting and then importing only if the RTF format is used or whether they are preserved from other formats such as HTML as well.
Joined: 18 May 2010
|Post Options Quote Reply Posted: 08 Dec 2014 at 3:16am|
Exporting and importing RTF/HTML should persist formatting.
You can always try the trial version first before purchasing. There is a rich text view demo included that you can use for testing purposes of exporting/importing RTF/HTML.
The following code should export to html:
TMSFMXNativeNSRichTextView1.ExportData(TPath.GetDocumentsPath + PathDelim + 'test.html', dtHTMLTextDocumentType);
and import from html:
TMSFMXNativeNSRichTextView1.ImportData(TPath.GetDocumentsPath + PathDelim + 'test.html', dtHTMLTextDocumentType);
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum