-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always starts with 4 tab indented lines when initialized with empty value #30
Comments
I think I have a related issue, and maybe the cause of this issue. If I add custom toolbars like this: <Toolbar>
<MarkdownToolbarButton Action="MarkdownAction.Bold" Icon="fi fi-text-bold" Title="Bold" />
<MarkdownToolbarButton Action="MarkdownAction.Italic" Icon="fi fi-text-italic" Title="Italic" />
<MarkdownToolbarButton Action="MarkdownAction.Strikethrough" Icon="fi fi-text-strikethrough" Title="Strikethrough" />
<MarkdownToolbarButton Action="MarkdownAction.Heading" Icon="fi fi-text-header-1" Title="Heading" />
</Toolbar It initializes a line for each |
I wonder if it's because the toolbar is inside of the BlazorMarkdownEditor/PSC.Blazor.Components.MarkdownEditor/MarkdownEditor.razor Lines 5 to 10 in 308e446
|
I'll check this issue asap. |
Today, I updated the full repository. There is a new EasyMDE managed by myself. There is a lot of fixes in this new version. |
Thanks for updating, but it didn't address this issue. |
I faced the same problem. My solution was to wrap the toolbar's markup code in a hidden element. <Toolbar>
<div style="display: none;">
...
</div>
</Toolbar> |
When i try to initialize the editor without any content/value as empty string it sets the value to
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
. It also fires a valueChanged event with that value.If i give it a value like
-
than it only shows that.The text was updated successfully, but these errors were encountered: