Nested lists possible in text editor? #8302
-
|
I'm trying to create a list to the right of some text, but pushing the list button seems to apply the list tag to the whole paragraph instead of where my cursor is at, which is annoyingly restrictive. I'm 5 lines in my document and it's already the 2nd major issue I've run into with that CKEditor you guys are using. This is what I'm trying to do basically since I don't want to waste a whole line for a short header(Imagine the lists items are all aligned with each other, which I can't do here): |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Nested lists are supported in Trilium Notes, so you can create lists within lists (ordered or unordered) and even nest code blocks or headings inside list items. However, CKEditor (the editor Trilium uses) only allows list formatting to be applied to entire paragraphs or blocks, not inline with arbitrary text. That means you can't have something like "My list: - Item 1 - Item 2" all on the same line using the list button—the list will always start on a new line or block, and this behavior can't be changed without modifying CKEditor itself reference. If you want a header and a list, the standard approach is to put the header on its own line, then start the list below. As a workaround, you could manually type dashes or use a table for more control, but these won't give you true list formatting or nesting. This limitation is a known aspect of CKEditor and not something Trilium can easily change reference. If you want more details or examples of nested lists, check out the Trilium documentation on lists. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
@SamKook ,
Lists are block elements, so this behavior is not supported. Can you tell me an editor which has this behavior? |
Beta Was this translation helpful? Give feedback.
-
|
Wow, I guess I'm asking too much, I can't actually do this in any editor, not even libreoffice writer... Seemed like a simple enough thing, but I guess using an invisible table is the only way to actually get it done with automated list formatting, but that's impossible here since setting the borders to none makes them dotted even when the cursor is somewhere else(I would have imagined them to only visible if I'm editing the text inside of a cell or hovering), the minimum spacing inside a cell is huge(by default at least) and there is a permanently visible bar at the bottom for some reason. At least it can be done manually by aligning things with lots of empty space so guess I'll go with that then. |
Beta Was this translation helpful? Give feedback.

@SamKook ,
Lists are block elements, so this behavior is not supported. Can you tell me an editor which has this behavior?