為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Indent button in compose window doesn't indent, it quotes

  • 1 回覆
  • 0 有這個問題
  • 1 次檢視
  • 最近回覆由 Matt

more options

It appears that the indent/unindent button in the message composer doesn't indent and unindent, it increases and decreases the blockquote level. Quoting and indenting are different operations, and need to be formatted differently. I see that pressing the indent button uses a < blockquote> while "real" quoting uses < blockquote type=cite>. You would think it possible to add CSS to properly differentiate between the two.

Unfortunately email clients like Gmail and Outlook don't support attribute selectors in CSS. That means that it's impossible for the recipients using Gmail and Outlook to differentiate between quotes and indents. Composing emails that don't render properly on Gmail and Outlook is just not a practical option. Very few (probably none) of the people to which I send emails are running Thunderbird. I need quote and indent to work with recipients that aren't running Thunderbird.

According to multiple sources I've found, the blockquote tag has been frowned upon for a long, long time when what you want is indent. The proper way to indent is < div style="pad-left: 3em" > or < div style="left-margin: 3m" >.

Would it be possible to fix the indent button so that it doesn't quote the selected text, it indents it?

It appears that the indent/unindent button in the message composer doesn't indent and unindent, it increases and decreases the blockquote level. Quoting and indenting are different operations, and need to be formatted differently. I see that pressing the indent button uses a < blockquote> while "real" quoting uses < blockquote type=cite>. You would think it possible to add CSS to properly differentiate between the two. Unfortunately email clients like Gmail and Outlook don't support attribute selectors in CSS. That means that it's impossible for the recipients using Gmail and Outlook to differentiate between quotes and indents. Composing emails that don't render properly on Gmail and Outlook is just not a practical option. Very few (probably none) of the people to which I send emails are running Thunderbird. I need quote and indent to work with recipients that aren't running Thunderbird. According to multiple sources I've found, the blockquote tag has been frowned upon for a long, long time when what you want is indent. The proper way to indent is < div style="pad-left: 3em" > or < div style="left-margin: 3m" >. Would it be possible to fix the indent button so that it doesn't quote the selected text, it indents it?

由 Matt 於 修改

所有回覆 (1)

more options

Ok I have hacked your HTML to prevent it from rendering.

Now lets look at this.

You say
Unfortunately email clients like Gmail and Outlook don't support attribute selectors in CSS.

Wonderful, except they really do not support style either in the head or in the body over a google.

See https://www.campaignmonitor.com/css/style-element/style-in-head/  

If your goal is maximum folk seeing what you write how you format it. CSS is not a very functional option in email is the short answer.

https://bugzilla.mozilla.org/show_bug.cgi?id=882181 is the bug for this issue, not the support forum as it is not a support issue.