kglw-dot-net / discourse-gizzard-setlist

Discourse Plugin to turn a BBcode-style tag into a King Gizzard setlist (powered by kglw.net!)
https://forum.kglw.net
2 stars 0 forks source link

disables "quote selected text" feature #1

Open alxndr opened 1 year ago

alxndr commented 1 year ago

Expected behavior

Normally when a user is reading a post, and the "default other enable quoting" option is on (terrible name), they can select/highlight some text in a post, and then a popup appears next to / above the selection with a "Quote" button (and maybe other buttons too). If the user clicks this button, a new reply to the post is started (or existing draft is amended) containing [quote="..."]...[/quote] in the body.

Screenshot of working 'quote selected text' popup

Turning the plugin off will restore the "Quote" button popup behavior.

Note that these errors/warnings are not interfering with the correct behavior:

Screenshot of JS console with warnings and errors

Buggy behavior

With v0.2.2 (and maybe earlier), in Discourse v3.3.0.beta1:

Working correctly

Entering the [quote] code manually in a reply to the topic is still working as expected.

The j / k keyboard shortcuts (navigating down/up in the thread and selecting a topic), and then pressing q, does work to create a new reply and quote the entire selected post.

More

Discourse stuff...

potentially related

prior art (note that we use Discourse 3.3.X-betaY)

alxndr commented 4 months ago

the quote button is from app/assets/javascripts/discourse/app/components/post-text-selection-toolbar.gjs

alxndr commented 4 months ago

image+text meme with Dos Equis man alongside the caption "I don't always test my code, but when I do, I it's in production"

alxndr commented 4 months ago

it's hitting this return ... or maybe not