Probeer onze nieuwe componist!

Stappen om te reproduceren

  1. Gebruik “Citaat kopiëren” op een Topic-tekst.
  2. Open een nieuwe antwoord-composer.
  3. Schakel naar WYSIWYG-modus
  4. Plakken
  5. Resulteert in letterlijke tekens

Dit zou de tekens niet letterlijk moeten kopiëren, maar een verwachte WYSIWYG-citaat moeten leveren.

2 likes

Sorry, I can’t reproduce this issue, as this is exactly what I did on my last post and just now with this new quote.

What are the literal characters? Are the quotes being auto-“smart” replaced by your OS?

What browser/OS?

1 like

Kan repro op Android A14, met Chrome. Gebeurt hier op Meta.

1 like

Hoe plak je? Gebruik je de Android IME-functionaliteit (de “slimme balk”)?

Zo ja, dan is dat een heel moeilijke functie om aan te passen en deze combinatie is zeer waarschijnlijk niet te repareren, helaas - maar ik zal toch nog wat dieper graven.

Kun je ter test/vergelijking proberen om dit op deze manier lang in te drukken en te plakken - of op een andere manier die de IME-balk niet gebruikt?

1 like

Hmm… het werkt als ik op de cursor druk en op ‘plakken’ klik, maar niet als ik op de prompt in de toetsenbordbalk klik, of als ik naar klembord ga > gekopieerde citaat selecteren.

2 likes

This was raised before internally; here were my findings at the time:

I’ll try to get some clarity if this is still the case or if there’s anything we can do about it, but putting this here as a reference

transformPasted doesn't catch pasted - #3 by marijn - discuss.ProseMirror

Emphasis mine, the “bright side” doesn’t do us any favor as we’d still want to process this plain text as Markdown.

We don’t have an input rule for [quote] yet, this could help (assuming the IME input does the same as typing each character in the keyboard) IF the resulting pasted text didn’t have that broken closing [/quote] from your first video.

Can you share how is this being pasted (in a code block preferably)? Does the resulting pasted text also have a closing bbcode tag broken in two lines like our internal report?

De markdown ziet er als volgt uit:

[quote="brian, post:58, topic:120"]

Dit is een citaat

[/quote]

Dit is een test.

Chrome op Android (als PWA)

In WYSIWYG-modus wordt dit letterlijk weergegeven.

3 likes

Ik zie ~twee mogelijke wegen om dit aan te pakken, ik zal proberen beide deze komende week te verkennen.

Aangezien de IME-invoer geen daadwerkelijke plakgebeurtenis triggert, maakt dat de zaken erg moeilijk.

Eén weg is het ondersteunen van de automatische tekstconversie van [quote] (ProseMirror/we noemen dat “invoegregels”), maar het is nog steeds mogelijk dat dit niet werkt met de IME-invoermodus. Het is in ieder geval het proberen waard.

De andere mogelijkheid is er een waar ik nog minder vertrouwen in heb - het zou mogelijk kunnen zijn om iets te hacken door te luisteren naar compositiegebeurtenissen.

Bedankt voor de meldingen!

7 likes

I know there’s active chatter in this topic, but as we have just launched the new composer ( Introducing our new composer, making writing on Discourse easier than ever ), we want to encourage you to treat it like any other feature of Discourse — when you run into issues, please post in the Support or Bug categories, and feel free to suggest improvements in the Feature category.

I’m setting a timer for this topic to close in a few days, which should give ongoing conversations a chance to wrap up.

8 likes

Dit onderwerp werd automatisch gesloten na 2 dagen. Nieuwe reacties zijn niet meer toegestaan.