erossini / BlazorMarkdownEditor

Complete Markdown Editor component for Blazor WebAssembly and Blazor Server. Full of functionalities
https://www.puresourcecode.com/dotnet/blazor/markdown-editor-component-for-blazor/
MIT License
134 stars 18 forks source link

ValueChanged eventcallback always return the initial value of markdown text #4

Closed RosaShellPicker closed 2 years ago

RosaShellPicker commented 2 years ago

I handled the ValueChange event when using BlazorMarkdownEditor, but when I typed in the editor, the value returned as a parameter never changed. We need to restore the markdown text in database.

erossini commented 2 years ago

I'll check that. Give you an answer asap.

erossini commented 2 years ago

Hi @RosaShellPicker, there was an issue related to the variation on "Component changing its Parameter value". I fixed it and an update for the component is on its way.

Now, you have to change slightly the code for adding a new MarkdownEditor like that

<MarkdownEditor @bind-Value="@markdownValue" 
                ValueHTMLChanged="@OnMarkdownValueHTMLChanged" />
RosaShellPicker commented 2 years ago

@erossini Thanks for replying so rapidly, and the issue is resolved. You are amazing!