WYSIWYG Editor and Mozilla ??

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Mike1
Posts: 70
Joined: Thu 10. Jun 2004, 13:39

WYSIWYG Editor and Mozilla ??

Post by Mike1 »

Generally I use WYSIWYG Editor ($phpwcms["wysiwyg_editor"] = 1; //1 = HTMLarea) and it works fine when I just type and edit my text. But when I try to copy or paste I got message from Mozilla:

[JavaScript Application]

Unprivileged scripts cannot access Cut/Copy/Paste programatically for security reasons. Click OK to see a technical note at mozilla.org which shows you how to allow a script to access the clipboard.

OK Cancel

I click on OK and see http://mozilla.org/editor/midasdemo/securityprefs.html

I made all these
user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");


but it does not work!!

Why ? Mozilla 1.5
evan
Posts: 31
Joined: Sun 28. Mar 2004, 22:57

Re: WYSIWYG Editor and Mozilla ??

Post by evan »

Mike1 wrote: ("capability.policy.allowclipboard.sites", "http://www.mozilla.org");
This was meant as an example... you're supposed to replace "http://www.mozilla.org" with the URL of the site you want to be able to copy/paste on. (you don't need the /phpwcms.php?alskmvowrim stuff, just up to the .com or whatever is fine)
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

That ~sounds~ correct :?
http://mozilla.org/editor/midasdemo/securityprefs.html
Setting Prefs for the Mozilla Rich Text Editing Demo
To protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in the Mozilla rich text editor, so the corresponding buttons on the Mozilla Rich Text Editing demo page will not work. To enable these functions for purposes of the demo, you must modify your browser preferences.

Quit Mozilla. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.
Find your Mozilla profile directory. On Windows, this is often located in
c://WINNT/Profiles/<your Windows login>/Application Data/Mozilla.

Open the user.js file from that directory in a text editor. If there's no user.js file, create one.
Add these lines to user.js:
user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");

Save the file, and restart Mozilla. The Clipboard buttons should now function.
Mike1
Posts: 70
Joined: Thu 10. Jun 2004, 13:39

Re: WYSIWYG Editor and Mozilla ??

Post by Mike1 »

evan wrote:
Mike1 wrote: ("capability.policy.allowclipboard.sites", "http://www.mozilla.org");
This was meant as an example... you're supposed to replace "http://www.mozilla.org" with the URL of the site you want to be able to copy/paste on. (you don't need the /phpwcms.php?alskmvowrim stuff, just up to the .com or whatever is fine)
Of course I have changed it with my site URL but it does't works too. Have no idea why. The same PC using IE 6.0 - all works fine!
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Your answer ~may~ be here... check this thread:
http://www.interactivetools.com/iforum/ ... te_P22907/
Mike1
Posts: 70
Joined: Thu 10. Jun 2004, 13:39

Post by Mike1 »

DeXXus wrote:Your answer ~may~ be here... check this thread:
http://www.interactivetools.com/iforum/ ... te_P22907/
Thanks!! Great! It works now!!
Post Reply