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

搜尋 Mozilla 技術支援網站

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

了解更多

Why don't web browsers use SMART copy, cut and paste?

  • 6 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 FredMcD

more options

I'm used to cut, copy and paste commands being smart about spaces before or after the affected text. For example, if I cut a word out of a sentence, I shouldn't be left with two spaces. Instead, one of those spaces should disappear with the word. Similarly, when I paste a word in it shouldn't be stuck up aginst an adjacent word, there should be a space automatically added. As I'm sure you know, this is the common behaviour in all editing apps, and has been so for at least the last 33 years or so, since the Mac came out. But not in browsers. Since this is true of all the browsers I've tested, I'm wondering why? Anyone have a definitive answer? Anyone have a workaround?

Thanks

I'm used to cut, copy and paste commands being smart about spaces before or after the affected text. For example, if I cut a word out of a sentence, I shouldn't be left with two spaces. Instead, one of those spaces should disappear with the word. Similarly, when I paste a word in it shouldn't be stuck up aginst an adjacent word, there should be a space automatically added. As I'm sure you know, this is the common behaviour in all editing apps, and has been so for at least the last 33 years or so, since the Mac came out. But not in browsers. Since this is true of all the browsers I've tested, I'm wondering why? Anyone have a definitive answer? Anyone have a workaround? Thanks

所有回覆 (6)

more options

https://addons.mozilla.org/en-US/firefox/addon/copy-as-plain-text/ Copy As Plain Text Removes formatting from copied text.

more options

Thanks Fred. That linked page has this in it... "NOTE: An unsigned updated version with new features is available on the forum. There are significant updates and fixes with this version. They will be included in the next version that shows up here, but you can start using them right away by downloading from the forum." Alas, when I click the link on the word 'forum', I get a page full of PHP errors. Something about that makes me reluctant to install this addon, so I'll just ask: does this addon also correctly add a space when required during a paste? Nothing in the addon description mentions that.

Thanks

more options

Hi  !

This replaces the above mentioned add-on and is compatible with
Firefox 57+ :

https://addons.mozilla.org/en-US/firefox/addon/copy-plaintext/

If however, this add-on does what you want : I guess you could give it a try and find out .....

由 Happy112 於 修改

more options

Thanks for the suggestion.

Installed, restarted FF... addon doesn't do anything as far as I can see. They suggest changing the system-wide behaviour of the function keys (which I won't do for one addon) to get their keyboard shortcuts to work.

Oh well.

I'm still wondering why cut, copy and paste don't work in browsers the way they do everywhere else in my system. Anyone know?

more options

rstevenson said

I'm still wondering why cut, copy and paste don't work in browsers the way they do everywhere else in my system. Anyone know?

Quite frankly : I've never even given it any thought, for I always click where I want, whatever it is I want to paste, to 'land' - never thought of it as too much hassle .....

more options

With the add-on I posted, what you do is mark the text you want, then right-click and select Copy As Plain Text.

The other add-on should be much the same.

In using the add-on, spaces before and after are removed. Only the text is copied. No command scripts.