Editor writes content backwards when enclosed within Blazorise Validations component
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 30/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- html
- Bereich
- frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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";
}
- Vorherrschende Sprache
- HTML
- Sterne
- 57
- Forks
- 17
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus tinymce/tinymce-blazor
-
status: escalated
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 42/100
tinymce/tinymce-blazor#89 · 3 Kommentare · 7 Reaktionen ·
-
bug status: escalated
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
tinymce/tinymce-blazor#83 · 5 Kommentare ·
-
Clarity on ScriptSrcOffendocumentation GitHub status: escalated
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 35/100
tinymce/tinymce-blazor#70 · 4 Kommentare · 1 Reaktion ·
-
Editor not loadingOffenGitHub
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
tinymce/tinymce-blazor#59 · 8 Kommentare ·
-
Debounce/delayOffenenhancement GitHub
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 28/100
tinymce/tinymce-blazor#58 · 2 Kommentare ·
Alle Issues in tinymce/tinymce-blazor
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
datasektionen/cashflow#468 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
zabuton-app/meguri#875 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
iruzen-dono/workless#117 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:web wave wave:trivial
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag