Page 1 of 1

WYSIWYG Editor and Mozilla ??

Posted: Fri 11. Jun 2004, 17:17
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

Re: WYSIWYG Editor and Mozilla ??

Posted: Fri 11. Jun 2004, 19:13
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)

Posted: Fri 11. Jun 2004, 19:40
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.

Re: WYSIWYG Editor and Mozilla ??

Posted: Sun 13. Jun 2004, 00:33
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!

Posted: Sun 13. Jun 2004, 00:57
by DeXXus
Your answer ~may~ be here... check this thread:
http://www.interactivetools.com/iforum/ ... te_P22907/

Posted: Sun 13. Jun 2004, 01:05
by Mike1
DeXXus wrote:Your answer ~may~ be here... check this thread:
http://www.interactivetools.com/iforum/ ... te_P22907/
Thanks!! Great! It works now!!