새로운 작곡가(Composer)를 사용해 보세요!

Steps to reproduce

  1. Use Copy Quote on some Topic text.
  2. Open a new reply Composer.
  3. Switch to WYSIWYG mode
  4. Paste
  5. Results in literal characters

This should not literally copy in the characters but deliver a WYSIWYG quote as expected.

2개의 좋아요

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개의 좋아요

Can repro on Android A14, using Chrome. Happens here on Meta.

1개의 좋아요

How are you pasting? Are you using the Android IME functionality (the “smart bar”)?

If so, that’s a very hard feature to tweak and this combo is very very likely unfixable, unfortunately - but I’ll do some more digging anyway.

Just as a test/comparison, can you try long pressing and pasting this way - or any way that does not use the IME bar?

1개의 좋아요

Hmm… it works if I press the cursor and click on ‘paste’, but doesn’t if I click the prompt at the keyboard bar, or if I go to clipboard > select copied quote.

2개의 좋아요

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?

The markdown looks like:

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

This is a quote

\[/quote\]

This is a test.

Chrome on Android (as PWA)

In WYSIWYG mode it makes this literal.

3개의 좋아요

I see ~two potential paths to address this, I’ll try to explore both during this next week.

As the IME input doesn’t trigger an actual paste event, that makes things very hard.

One path is supporting the [quote] automatic text conversion (ProseMirror/we call that “input rules”), but it’s still possible it won’t work with the IME input mode. Worth a shot anyway.

The other possibility is one I’m even less confident about - it might be possible to hack something by listening to composition events.

Thanks for the reports!

7개의 좋아요

이 주제에 활발한 논의가 진행 중이라는 점은 알고 있지만, 방금 새 작성기( Introducing our new composer, making writing on Discourse easier than ever )를 출시했으므로, 이를 Discourse의 다른 기능과 마찬가지로 대할 것을 권장합니다. 문제가 발생하면 Support 또는 Contribute > Bug 카테고리에 게시해 주시고, Contribute > Feature 카테고리에서 개선 사항을 제안하는 것도 좋습니다.

이 주제를 며칠 안에 닫을 수 있도록 타이머를 설정할 예정입니다. 이를 통해 현재 진행 중인 대화들이 마무리될 수 있는 시간을 확보할 수 있습니다.

8개의 좋아요

This topic was automatically closed after 2 days. New replies are no longer allowed.