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. 
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?
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.
@simon,我们还能重现这个问题吗?
我刚才测试了一下,在创建新耳语时按 Ctrl + K 打开链接模态框,点击“确定”按钮插入链接后,我正在撰写的预设回复消失了。我的控制台中没有看到任何错误。我正在 Ubuntu 上使用最新的 Chrome 浏览器进行测试。
我假设这个问题与“添加预设回复”和“插入超链接”都使用模态窗口有关。当插入超链接模态框打开时,添加预设回复模态框会自动关闭。