在全屏编辑模式下仍显示“回复/创建主题”按钮

When using the full screen post composition, I think the Reply / Create Topic and cancel buttons should still be visible. I don’t think it would result in any less composition space since the check box (after auto-save) and the hide preview button are both already visible.

Right now when I’m done writing and proofing my post, I have to close full screen mode to hit the Reply button. The extra step seems unnecessary to me, so being able to reply directly from full screen mode would be a welcome addition.

8 个赞

Yeah I agree this seems odd, why do we hide the submit buttons in full screen @Johani?

Oh wait, I remember. Because we feel if you are ninja enough to do full screen, you know that esc cancels and ctrl+enter submits the post.

Just tested and, it works. Hover your mouse over the submit button if you’re going to say “but I didn’t know about the keyboard shortcut” :wink:

4 个赞

I never thought to try Ctrl+Enter in full screen mode. I guess since the buttons aren’t visible I inferred that you couldn’t submit the post in that view at all.

Is the fact that you can use Ctrl+Enter a reason not to include the buttons though?

2 个赞

See above sentence as previously stated.

1 个赞
  1. Why does using full screen make you a “ninja”? I wouldn’t assume that only power users are using full screen mode. Some people might just want more real estate to see what they are typing.
  2. Is there any harm in adding this button? I only see it as a benefit to make full screen mode more user friendly and allow non-“ninjas” to enjoy this functionality more.
2 个赞

The reason why the submit button is removed has very little to do with how much space it takes. The actual reason is that you can’t submit a topic with an invalid title or without tags (if they are required).

In the default composer view, you’ll get a very clear error letting you know what’s wrong:

When the composer is in full-screen mode, we hide all the fields except for the body of the post.

This is very intentional as one of the goals of the full-screen composer mode (all the way back to when it was a theme component) was to create a distraction-free minimal interface.

Adding the submit button to the full screen composer like so

is possible, but it can lead to confusion in case the user hasn’t filled in the required fields like the title (and tags in some cases).

Even if the button is visible and you click it, the post won’t be submitted. So you end up with what looks like a broken button, until you exist the full-screen mode. You will then see the error on the title / tags fields (see the first image above).

So, if we add the button, we would then also need to add all of those fields in the full-screen mode as well. This ends up looking a lot less minimal and more cluttered than what we want it to be.

Besides, using the full screen composer implies that you’re probably writing a lengthy post, so it’s a good idea to check if anything has changed in the discussion (if it’s a reply) rather than directly submitting the post.

I’m not saying that there won’t be improvements in future iterations of the feature, but for now, the keyboard shortcut is your best bet.

14 个赞

Thanks for the detailed explanation. I wonder if it might make sense in the future to show the buttons if it’s a reply (so it doesn’t have the issues you described with new topics), though it being inconsistent also might not be the best for the user experience.

All the points you made definitely make a lot of sense. I’ll try to get used to the keyboard shortcut for now.

2 个赞

是否可以在设置标题/标签之前隐藏全屏编辑器的访问权限,以便“保存编辑”按钮能始终在全屏编辑器中显示?

2 个赞

@johani 注意看,按 \u003ckbd\u003eF11\u003c/kbd\u003e 时顶部会短暂显示一个半透明的覆盖层 UI,随后消失,以此提示如何“退出”全屏模式……或许这里也可以实现类似的效果?

这是一个会短暂出现然后优雅淡出的覆盖层。这样做或许会很棒!

1 个赞

它确实看起来不错,但要说什么呢,在这里?退出全屏编辑器很简单:你点击以进入该模式的同一个图标仍然在那里,再次点击即可退出。

这个话题以及另一个话题(https://meta.discourse.org/t/there-is-no-reply-save-edit-save-wiki-button-on-the-full-screen-composer/127233/5)中的讨论,是关于全屏编辑器中缺少回复/验证按钮的问题。告诉人们可以使用 ESC + ENTER 吗?这就是你想展示的内容吗?(顺便提一下,这种验证方式存在与缺失按钮完全相同的所有潜在问题)

这个问题已经出现过很多次了。所以我想我们可以两者兼顾。

  1. 添加一个简短的提示,告知用户如何退出全屏模式:“按 Esc 退出。”
  2. 在全屏模式下添加 + 创建主题 / 回复 按钮。如果标题、分类或标签缺失,我们将强制编辑器退出全屏模式。届时您将看到错误提示。
10 个赞
  1. 目前,“ESC”键似乎并不是“退出全屏”,而是有些不同:如果编辑器中没有文本(未输入任何内容或已全部删除),它会完全退出编辑器;如果存在文本,则将其最小化。

  2. 太好了!我很高兴看到这一点。我认为这确实是一个缺失的功能。

关于“如何退出全屏”的提示信息,我不确定是否真的有必要,因为图标仍然可见(这与全屏浏览器不同:按“F11”后,您无法再用鼠标退出,这会让一些用户感到“被困住”。现在,他们也在两个上角添加了“x”按钮,当鼠标悬停时会显示)。

1 个赞

是的,要遵循的 UI 模型是:在浏览器中按下 F11,例如:

1 个赞

是的,拜托了!我们的非忍者用户将受益匪浅。

3 个赞

这个功能搁置了一段时间了,但我们现在添加了这两个功能:

这个功能

一个快速提示,告诉您如何退出全屏模式:“按 esc 退出。”
看起来是这样的:

而这个功能

+ 创建主题 / 回复 按钮添加到全屏模式。如果缺少标题/类别/标签,我们会强制撰写器退出全屏模式。然后您将看到错误。
看起来是这样的:

如果用户创建的主题/回复不符合给定站点设置的最低要求(标题太短 - 正文太短 - 需要类别/标签),则撰写器将返回到默认视图,他们将看到需要修复的错误。

如果撰写器没有任何错误,他们将能够按预期从全屏模式发布。

8 个赞