Forums / Bug Reports / [No plans to fix] Cannot copy text to HTMLarea

[No plans to fix] Cannot copy text to HTMLarea

Locked

Views: 2,466

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
31 Oct 2007, 10:38 PM
#1
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

[No plans to fix] Cannot copy text to HTMLarea

Hi,

I tried to copy formatted texts from web pages and microsoft word into HTMLarea, and found these symptoms:

  1. It won't accept at all texts from microsoft words.

  2. Sometimes it accepts but most of the time doesn't for texts from HTML page.

  3. Upon copying the texts, I got this message from the browser: "Unpriviledged scripts cannot access Cut/Copy/Paste programatically for security reasons. Click..." I tried to follow the instruction given by Mozilla but the problem still exists.

I use Mozilla Firefox 2.0.0.8 and Zen-Cart 1.3.7.

The workaround I do until now is by looking at the source code of the formatting and copy paste them using the plain text editor. Then I would do some other formatting using HTMLarea afterwards. That works well, but if there's a more direct way to achieve this I'd be glad to hear.

The greatest pleasure in life is doing what people say you cannot do.

Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation

31 Oct 2007, 11:43 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [No plans to fix] Cannot copy text to HTMLarea

That's a known limitation with most web-based HTML editing tools.

For true clean content, it's best to prepare it yourself in a proper clean editor (stay AWAY from Microsoft products) and paste the clean raw HTML into the admin directly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Nov 2007, 4:20 AM
#3
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: [No plans to fix] Cannot copy text to HTMLarea

Ah I see, thanks a lot Dr. Byte ;)

The greatest pleasure in life is doing what people say you cannot do.

Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation

1 Nov 2007, 10:11 PM
#4
dedj avatar

dedj

Zen Follower

Join Date:
Jan 2007
Posts:
129
Plugin Contributions:
0

Re: [No plans to fix] Cannot copy text to HTMLarea

No worries, Mozilla rocks with its extensions

I myself use this often, check this url out and be happy :smile:

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

jaycode:

Hi,

I tried to copy formatted texts from web pages and microsoft word into HTMLarea, and found these symptoms:

  1. It won't accept at all texts from microsoft words.

  2. Sometimes it accepts but most of the time doesn't for texts from HTML page.

  3. Upon copying the texts, I got this message from the browser: "Unpriviledged scripts cannot access Cut/Copy/Paste programatically for security reasons. Click..." I tried to follow the instruction given by Mozilla but the problem still exists.

I use Mozilla Firefox 2.0.0.8 and Zen-Cart 1.3.7.

The workaround I do until now is by looking at the source code of the formatting and copy paste them using the plain text editor. Then I would do some other formatting using HTMLarea afterwards. That works well, but if there's a more direct way to achieve this I'd be glad to hear.