搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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.