Search found 6 matches

by at0306
Fri Nov 29, 2024 11:00 am
Forum: Support
Topic: Change Font with TRVFontComboBox in v22.4
Replies: 1
Views: 6101

Change Font with TRVFontComboBox in v22.4

Hello,

I'm trying to build a simple Editor using TRichViewEdit and Actions.
I used the TRVFontComboBox for Font selection and linked it with the RichViewEdit. But when I select a text
and change the Font Name, the font gets not applied on the Selected text. It's the same with the font size.
What ...
by at0306
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: 18048

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?
by at0306
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: 18048

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 ...
by at0306
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: 18048

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 ...
by at0306
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: 18048

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 ...
by at0306
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: 18048

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 ...