"Hide Details" section open by default in new editor

The new WYSIWYG editor tries to represent exactly what will be rendered in the actual post, but in this one case it does it too well. In short, when you are writing a post with a “Hide Details” section you generally want it to be closed by default (it is to hide details after all). However, when writing/reviewing your draft, you will naturally have the Hide Details section open so you can see the text inside it. The problem is that this posts the Hide Details in the open state so that it’s open by default. I honestly didn’t even know you could make it open by default and this seems very counterintuitive to how most users would want the section to be rendered.

Steps to reproduce:

  • Start a new draft in RTE mode
  • Create a new “Hide Details” section
  • Open the “Hide Details” section
  • Create the post

Expected: In the post, the “Hide Details” section should be closed by default since this matches years of expectations from the Markdown editor

Actual: The “Hide Details” section is open by default

2 Likes

I think it should still be open while writing, but I agree it should post as closed.

2 Likes

When writing you can toggle it open and closed anyway, so yeah I was just saying the final post should default to closed.

How do you create open details with the WYSIWYG editor if not by leaving them open before posting? Isn’t details being open when they were open before posting exactly that? You get what you see.

Yes, you get what you see. And I’m saying in this case getting what you see is unintuitive and counter to the point a hide details section. Expecting the user to manually close every Hide Details section before posting wouldn’t make for a good user experience.

1 Like

I don’t think that’s intended usecase here. The details should by default be closed, and optionally opened. Having to remember to manually toggle it close before creating a post isn’t very smooth.

1 Like

Removing the “open” in markdown before posting isn’t more intuitive either. But when you want to see what you are writing in the preview using the markdown editor, you have to do that. That is my normal workflow. Create details, add “open” so I can see the formatting in the preview while I am typing, and at the end remove the “open”.
For me toggling them to be closed is like removing the “open” in markdown.

So I disagree with

because my experience was the same before. I had to remove the “open” formatting before posting

That was the reasoning too when developing this feature and is exactly what happens, but I agree that the current behavior feels counter-intuitive because posting an open=true details section seems like a very rare edge case to me, and end up hurting the default/more common experience because of this support.

4 Likes

This is a tricky one.

I think it’s reasonable to assume that most people create details sections with the intention of having them closed upon posting to avoid cluttering or overpopulating their post with perhaps ancillary content; otherwise, why have the content in a details section at all?

But, if we default to closing all details sections upon post, then we make it impossible for anyone to post an open details section without switching to Markdown-mode and it does conflict with the premise of WYSIWYG. If it’s open in the editor, then it’s open in the posted topic / reply.

I wonder if the placeholder content is confusing — when it is open, we tell you “this text will be hidden”:

CleanShot 2025-08-07 at 11.11.54

I don’t have a clear idea yet on where to go with this, but I agree something feels off.

Also, the communities I use host book clubs and the details sections are commonly used to post spoilers (especially when there’s a lot of text and using a spoiler tag is awkward). Having these open by default would be a huge problem. (That’s actually how I discovered the issue to begin with.) If they are open by default many users will spoil the books for other users, and I wouldn’t be surprised if many revert back to markdown to avoid this.

1 Like