Search found 5 matches
- Wed Nov 20, 2024 2:56 pm
- Forum: Support
- Topic: How can I load Plain Text (HTML or Markdown) from a RichView
- Replies: 9
- Views: 2095
Re: How can I load Plain Text (HTML or Markdown) from a RichView
Removing RichViewEdit1.Clear before RichViewEdit1.SaveMarkdownToStream didn't changed anything, I still get an empty document. Why is that?
- Wed Nov 20, 2024 12:29 pm
- Forum: Support
- Topic: How can I load Plain Text (HTML or Markdown) from a RichView
- Replies: 9
- Views: 2095
Re: How can I load Plain Text (HTML or Markdown) from a RichView
I need to get the content of TRichView either as Markdown or as HTML But SaveMarkdownToStream needs a path and I don't. I do this richview1.SelectAll; var test: string := richview1.GetSelTextW; var stream: tstringstream := tstringstream.Create(test, tencoding.Unicode); RichViewEdit1.Clear ...
- Wed Nov 20, 2024 8:31 am
- Forum: Support
- Topic: How can I load Plain Text (HTML or Markdown) from a RichView
- Replies: 9
- Views: 2095
Re: How can I load Plain Text (HTML or Markdown) from a RichView
Thanks for the clarification. But I my case, I'm not loading the markdown text from a file. My problem here is the GetAllText() Method. When I pass my RichView into GetAllText() like this: var test: string := getalltext(richview1); and the content of RichView1 is: (but rendered as Markdown ...
- Tue Nov 19, 2024 1:38 pm
- Forum: Support
- Topic: How can I load Plain Text (HTML or Markdown) from a RichView
- Replies: 9
- Views: 2095
Re: How can I load Plain Text (HTML or Markdown) from a RichView
When I use LoadFromStream with AllowMarkdown = False I only get the text content but not the plain code. When I have this markdown: ## Header I gets rendered fine, but when I use LoadFromStream with AllowMarkdown = False, the result is "Header" instead of "## Header". It would be nice if there was a ...
- Mon Nov 18, 2024 2:34 pm
- Forum: Support
- Topic: How can I load Plain Text (HTML or Markdown) from a RichView
- Replies: 9
- Views: 2095
How can I load Plain Text (HTML or Markdown) from a RichView
Hello, I'm working on a project where I need to build a simple HTML and Markdown Editor with TRichView and TRichViewEdit. I insert the plain HTML/Markdown Text into the RichViewEdit and render it with rv.LoadFromStream into the RichView. But I can't find a way on how to load the rendered Text into ...