Editor writes content backwards when enclosed within Blazorise Validations component
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- html
- Domain
- frontend
Research direction
Start with the linked TinyMceBackwardsRepro repository and reproduce the issue using the Blazorise Form and Validations components shown in the issue. Trace how the editor handles bind-Value and Field updates when validation runs; the issue reports the cursor returning to the start on each keypress. Done means typing keeps the cursor in place and text appears in the intended order.
Written by the indexing model from the issue text.
Description
Hi, I have run into a very strange issue when using the component inside Blazorise.
Steps to repro (also see repro link here - https://github.com/gdunit/TinyMceBackwardsRepro)
- Create Blazorise Form then Validations components
- Embed the editor within the Validations (this is required in my solution due to structure of components)
- Editor is configured to use bind-Value and Field properties
- When the editor is focused, any keypress results in the cursor being returned to the start of the editor and therefore text appears 'backwards' when typed. I strongly suspect this is because of the editor being refocused on each keypress due to something that is triggered by the validation checking.
<Form>
<Validations Model="@this" ValidateOnLoad="false">
@*This TextEdit just here to demonstrate relationship to other components in form*@
<Validation>
<Field>
<TextEdit @bind-Text="SingleLineText">
<Feedback>
<ValidationError/>
</Feedback>
</TextEdit>
</Field>
</Validation>
<Editor Field="@(() => TinyMceRichText)" @bind-Value="TinyMceRichText"></Editor>
</Validations>
</Form>
@code{
[Required]
public string? SingleLineText { get; set; }
public string? TinyMceRichText { get; set; } = "Hello";
}
- Dominant language
- HTML
- Stars
- 57
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tinymce/tinymce-blazor
-
status: escalated
Difficulty 1/5 Under an hour Newbie friendliness 42/100
tinymce/tinymce-blazor#89 · 3 comments · 7 reactions ·
-
bug status: escalated
Difficulty 3/5 1-2 days Newbie friendliness 35/100
tinymce/tinymce-blazor#83 · 5 comments ·
-
Clarity on ScriptSrcOpendocumentation GitHub status: escalated
Difficulty 1/5 Under an hour Newbie friendliness 35/100
tinymce/tinymce-blazor#70 · 4 comments · 1 reaction ·
-
Editor not loadingOpenGitHub
Difficulty 3/5 1-2 days Newbie friendliness 35/100
tinymce/tinymce-blazor#59 · 8 comments ·
-
Debounce/delayOpenenhancement GitHub
Difficulty 4/5 3-5 days Newbie friendliness 28/100
tinymce/tinymce-blazor#58 · 2 comments ·
All issues in tinymce/tinymce-blazor
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Action playback and Record Again still open Convert to Frame with the old 1 to 300000 integer fields and no unit readingPossibly taken @Higgs32584 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
storytold/photocraft#20578 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bugfix
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day