Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Support Initially Expanded Accordions (`<details open>`)

Đang mở
#2,075 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
html, javascript, markdown
Lĩnh vực
frontend

Hướng nghiên cứu

The payload names no files, so search the codebase for where details and summary are handled in the Markdown rendering path, and check whether the HTML sanitizer strips the open attribute. The open or closed state must also survive reopening the note, which may involve the note-saving path. Done when <details open> renders expanded, plain <details> stays collapsed, and users can still toggle both.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

0. Needs triage feature request needs discussion

Nextcloud Notes already supports collapsible sections (accordions) using the HTML <details> and <summary> elements.

However, these sections are always displayed in a collapsed state by default.

In HTML, the open attribute allows a <details> element to be expanded immediately when the page is loaded.

For example:

<details open>
<summary>Title</summary>

Content that is visible by default.

</details>

Currently, there appears to be no way to achieve this behavior in Nextcloud Notes.

Suggested Improvement

Please support the open attribute for <details> elements, allowing accordion sections to be expanded by default.

The expected behavior would be:

  • <details> — collapsed by default.
  • <details open> — expanded by default.
  • Users can still manually expand or collapse either type.
  • The initial expanded or collapsed state is preserved when reopening the note.

Expected Benefit

This would provide greater flexibility when organizing longer notes with collapsible sections.

Some sections are intended to remain visible by default, while others should only be expanded when needed. Supporting both behaviors would make accordions considerably more useful and bring Nextcloud Notes closer to standard HTML functionality.

Ngôn ngữ chính
JavaScript
Star
739
Fork
162
Merge trung bình
19 giờ 23 phút
Pull request đã merge (30 ngày)
49

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/notes

Tất cả issue của nextcloud/notes

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.