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
WYSIWYG Editor and Mozilla ??
Re: WYSIWYG Editor and Mozilla ??
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)Mike1 wrote: ("capability.policy.allowclipboard.sites", "http://www.mozilla.org");
That ~sounds~ correct
http://mozilla.org/editor/midasdemo/securityprefs.html

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 ??
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!evan wrote: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)Mike1 wrote: ("capability.policy.allowclipboard.sites", "http://www.mozilla.org");
Your answer ~may~ be here... check this thread:
http://www.interactivetools.com/iforum/ ... te_P22907/
http://www.interactivetools.com/iforum/ ... te_P22907/
Thanks!! Great! It works now!!DeXXus wrote:Your answer ~may~ be here... check this thread:
http://www.interactivetools.com/iforum/ ... te_P22907/