Link zu einer vorgefertigten Antwort hinzufügen

I just tried to add a link to an existing canned reply. When I ctrl-k’d, the link-editing popup replaced the canned reply-editing popup and I lost all my edits. :cry:

1 „Gefällt mir“

Oh no! I’ve just tried to reproduce the issue on my hosted Discourse site. When I open the insert link modal with ctrl-k, I’m not actually able to insert the link. Instead, I get the following error in my browser’s console: Cannot read property 'querySelector' of null called from discourse/app/assets/javascripts/discourse/app/components/d-editor.js at main · discourse/discourse · GitHub.

I’m not sure if this should be a feature request or a bug report. I guess the feature request is to support using the insert link modal when editing canned replies.

What browser and operating system were you using when you lost your edits?

2 „Gefällt mir“

I’m on Ubuntu/Chrome

Also, I should maybe have added to the OP that the link popup seemed to behave a little oddly: I couldn’t esc out of it.

2 „Gefällt mir“

Können wir das noch reproduzieren, @simon?

Ich habe dies gerade getestet. Wenn ich Strg + K drücke, um das Link-Modal beim Erstellen einer neuen Whisper zu öffnen, verschwindet die vorbereitete Antwort, die ich gerade verfasst habe, nachdem ich auf die Schaltfläche „OK“ geklickt habe, um den Link einzufügen. Ich sehe keine Fehler in meiner Konsole. Ich teste dies mit dem neuesten Chrome-Browser unter Ubuntu.

Ich gehe davon aus, dass das Problem mit den Modal-Fenstern „Vorbereitete Antwort hinzufügen“ und „Hyperlink einfügen“ zusammenhängt. Wenn das Modal zum Einfügen von Hyperlinks geöffnet wird, schließt sich das Modal zum Hinzufügen vorbereiteter Antworten automatisch.

1 „Gefällt mir“