Editor writes content backwards when enclosed within Blazorise Validations component
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 30/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- html
- Domínio
- frontend
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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";
}
- Linguagem predominante
- HTML
- Estrelas
- 57
- Forks
- 17
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de tinymce/tinymce-blazor
-
status: escalated
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 42/100
tinymce/tinymce-blazor#89 · 3 comentários · 7 reações ·
-
bug status: escalated
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
tinymce/tinymce-blazor#83 · 5 comentários ·
-
Clarity on ScriptSrcAbertadocumentation GitHub status: escalated
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 35/100
tinymce/tinymce-blazor#70 · 4 comentários · 1 reação ·
-
Editor not loadingAbertaGitHub
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
tinymce/tinymce-blazor#59 · 8 comentários ·
-
Debounce/delayAbertaenhancement GitHub
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 28/100
tinymce/tinymce-blazor#58 · 2 comentários ·
Todas as issues de tinymce/tinymce-blazor
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
datasektionen/cashflow#468 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
zabuton-app/meguri#875 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
iruzen-dono/workless#117 ·
Mantenedores costumam responder em até 1 dia
-
area:web wave wave:trivial
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia