Markdown component editor language? #383
-
Hi! First of all I want to thank you for your effort. I'm loving the solution (i hate wordpress too). I'm passionate about C# and .NET in general and seeing it put to practice to this extent just makes me super happy and excited. I was playing around with the blog and I noticed the text in the "Create blog" (or edit) markdown editors is being highlighted in red. I think this is due to Blazorise using CodeMirror internally and thinking I'm making a mistake, because the text is in spanish. I've also confirmed that typing in english does not highlight my text. I'm not very familiar with Blazorise or CodeMirror in general so I was seeking help as to how I can configure this so that it doesn't highlight text in spanish. Things that I've tried but didn't work
Thanks for anyone that is able to provide help! P.S: if you anyone also knows how to edit colors in general of the markdown editor that'd be great but this would just be a great plus. I don't mind it too much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hey @zagoskin Thanks for your kind words. There are some measures we/you could do (thinking of adding some of those to the mainline branch). If we have a look at https://blazorise.com/docs/extensions/markdown (which is the markdown editor I am using). There are some tweaks:
Setting those to
Can you elaborate on this one? EDIT: <Markdown ElementId="@Id"
Placeholder="@Placeholder"
Class="@Class"
Value="@Value"
ValueChanged="s => Value = s"
MaxHeight="@Height"
PreviewRender="PreviewFunction"
ImageAccept="image/*"
ImageUploadChanged="UploadFiles"
NativeSpellcheck="false"
SpellChecker="false"
PreviewImagesInEditor="true"/> |
Beta Was this translation helpful? Give feedback.
Hey @zagoskin
Thanks for your kind words. There are some measures we/you could do (thinking of adding some of those to the mainline branch). If we have a look at https://blazorise.com/docs/extensions/markdown (which is the markdown editor I am using). There are some tweaks:
NativeSpellcheck
: If set to false, disable native spell checker. Defaults to true.SpellChecker
: If set to false, disable the spell checker. Defaults to trueSetting those to
false
will shut down the whole thing.Can you elaborate on this one?
EDIT:
To disable the whole spellcheck, edit the
MarkdownTextarea Component
: