[6.x]: Element editor sidebar Nodes can't include links, buttons or inline SVG
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- PHP
- スター
- 3.6k
- フォーク
- 710
- 平均マージ
- 11時間 29分
- マージ済み PR(30日)
- 265
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
craftcms/cms のほかの issue
-
[5.x]: Passkeys registered with webauthn-lib v4 still fail with an uncaught InvalidUserHandleException (HTTP 500) after the #19530 fix対応中かも @i-just が 4 日前に担当しました。 オープンrepo:cms
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
craftcms/cms#20052 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
craftcms/cms#20051 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[6.x]: Colored chips: link blue has low contrast on tinted backgrounds対応中かも @brandonkelly が 10 日前に担当しました。 オープンbug repo:cms
craftcms/cms#19984 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
craftcms/cms#19980 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[6.x]: Text in some input fields is clipped at the bottom on Windows対応中かも @brianjhanson が 15 日前に担当しました。 オープンbug repo:cms
craftcms/cms#19928 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
frontend good first issue healthcare-review
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
AfyaLinkAfrica/afyalink-web#25 ·
メンテナーはふだん 1 日以内に返信
-
priority:medium type:chore
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
crazy-goat/php-fpm-ng#1041 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
backdrop-contrib/paragraphs#299 ·
-
bug elixir P2 php test-only
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信