WYSIWYG Editor and Mozilla ??
Posted: Fri 11. Jun 2004, 17:17
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
[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