Can someone tell me how to make collapsible/foldable blocks. using joplin 3.2.12.
Searched through forum and found couple of ways, but nothing works. Tried:
<details>
<summary>SUMMARY<\summary>
TEXT
</details>
But doesn't work. Found solution but it only works in markdown and not in WYSIWYG
It shows like this, and when clicked it doesn't fold.

Hope someone can help, Thanks!
There's a Collapsible Blocks plugin by @ntczkjfg that serves this purpose elegantly.
Alternatively, you can use the HTML details tag:
<details>
<summary>Title</summary>
Text here can be collapsed or expanded
in the rendered view.
</details>
I found the plugin easier and better. It remembers the state of an item and preserves it, i.e., when you come back to a note with blocks, they will be found as you left them, whether that be collapsed, expanded, or even with several blocks where some were expanded and some not.
1 Like
Thanks I will check out this plugin. When I try it with html tags, It renders like this:
Can not be folded when double clicked
Used plugin too but still renders like I said before
Edit: So When I use "Toggle layout switch" - ▮▮
It works, but when I manually switch using "Toggle editors"
It doesn't work. I think I don't understand something...
Can not upload photos, because of new account policy
Usually if you click on Title in your picture above it will collapse the text underneath.
There are two editors in Joplin, the Rich Text editor, and the Markdown editor.
The previous reply was aimed at the Markdown editor, and the results show in the rendered view. The editors are often somewhat confusing for new users, and to get a concept of how it all fits together I'd recommend working your way thorough the Help pages.
Joplin is a powerful and versatile application, but does takes a little time to become accustomed to it.
Good luck!
1 Like
If you're using my Collapsible Block plugin, it's not WYSIWYG in the editor, but it should work in the webview. If it's displaying correctly but not toggling when clicked, then you may be in the Rich Text editor, which the plugin doesn't officially support. If you're in the webview and you're on the left side of the button below, with the M+, then they should work. Using the <details>
and <summary>
tags should also work in this mode - that's what the plugin does internally. The HTML tags notably won't remember whether you left them open or closed automatically, for when you come back to the note later, but the plugin will.
So in this image, my plugin and the HTML tags will only work if you're on the red-circled side of the Markdown/Rich Text Editor toggle, and you'll also have to be in the webview, toggled by clicking the blue button a time or two depending on your settings.

Thanks that what i was asking, so layout toggle shows markdown in web view. Yes it works when using that and also works on mobile app so it is enough for me. Thanks!