[6.x]: Element editor sidebar Nodes can't include links, buttons or inline SVG
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
Hướng nghiên cứu
Start from the metaFieldsNodes() method on element types and follow how its returned nodes reach the element editor sidebar, including the TemplateContent node that the issue says is sanitized and rendered inert. The open question is whether sidebar nodes should allow links, buttons and inline SVG, which is a sanitization and security decision the maintainers need to make before any code changes. Done would mean an agreed rule for what sidebar content is allowed, plus a test showing a permitted element survives rendering.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
Element types add sidebar content via metaFieldsNodes(). For read-only rich content the only option is TemplateContent, which is sanitized (inline SVG, buttons and inputs are dropped) and rendered inert, so even links can't be clicked.
My case: a custom Element sidebar would like to show a supporting URL, inline SVG, and a "Download SVG" button. Today, as a workaround, I render the URL as plain text, the inline SVG as an , and moved the download to the action menu.
Previously, I believe we used to be able to render any HTML as additional content in the sidebar. It would be nice to have more flexibility in the sidebar nodes again.
Craft CMS version
6.0.0-alpha.20
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
- Ngôn ngữ chính
- PHP
- Star
- 3.6k
- Fork
- 706
- Merge trung bình
- 12 giờ 30 phút
- Pull request đã merge (30 ngày)
- 274
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của craftcms/cms
-
[6.x]: Colored chips: link blue has low contrast on tinted backgroundsCó thể đã có người làm @brandonkelly đã nhận 2 ngày trước. Đang mởbug repo:cms
craftcms/cms#19984 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug repo:cms
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
craftcms/cms#19980 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[6.x]: Text in some input fields is clipped at the bottom on WindowsCó thể đã có người làm @brianjhanson đã nhận 7 ngày trước. Đang mởbug repo:cms
craftcms/cms#19928 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug repo:cms
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
craftcms/cms#19916 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[6.x]: AdminTable not available for plugin index and settings screensCó thể đã có người làm @brianjhanson đã nhận 8 ngày trước. Đang mởbug repo:cms
craftcms/cms#19912 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
loginWithCustomTokenExchange() fails when an organization is configuredCó thể đã có người làm @awss1i đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
auth0/auth0-PHP#883 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
flarum/framework#5231 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
major-release
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
Intervention/image#1553 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
omegaup/omegaup#10353 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100