Re: Firefox 1.5

PPK-Webprogramm CH-Gordevio <[email protected]> Thu, 26 Jan 2006 16:31:13 +0100
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>
Christian Stocker ha scritto:

>On 25.1.2006 18:51 Uhr, Michael Wohlfart wrote:
>I have another problem with FF 1.5 and BXE, it seems like
>copy&paste is broken. If you copy an external text-fragment
>into the Editor either by <ctrl>-C/V or with the Bitflux 
>buttons it just doesn't work. 
>  
>
Hi ...
The same problem is on mozile ( i think version 0.1 from BXE)
I have put a solution like so...
[use nasty-hidden-form-trickery div and textarea show by CTRL+C text and 
hide by "onDblClick"]
sample ......
http://ppk.ciz.ch/bxe/cute_paste/mozile/indexedit.html
list file => http://ppk.ciz.ch/bxe/cute_paste/mozile/

but the hidden span element ....

var placeholder = document.createElement("span");
not is required.....  http://ppk.ciz.ch/bxe/cute_paste/mozile/mozCE.js
Selection.prototype._createHiddenForm = function()

I think that access to .....
var clip = Components.classes["@mozilla.org/widget/clipboard;1"].

is not possibel.... on all gecko version (cross browser version!)
i tested to all PrivilegeManager.enablePrivilege
on firefox 1 , 1.07 , 1.5 and only 1.07 work fine.....

Ciao  Peter www.ciz.ch


function Privilege_Controll() {
try {
		netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
	} catch (e) {
		alert("Permission to script was denied. UniversalXPConnect");
	}
	
try {
		netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesRead UniversalPreferencesWrite");
	} catch (e) {
		alert("Permission to script was denied. UniversalPreferencesRead UniversalPreferencesWrite");
	}
	
try {
		netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesRead");
	} catch (e) {
		alert("Permission to script was denied. UniversalPreferencesRead");
	}
	
try {
		netscape.security.PrivilegeManager.enablePrivilege("CapabilityPreferencesAccess");
	} catch (e) {
		alert("Permission to script was denied. CapabilityPreferencesAccess");
	}
	
try {
		netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");
	} catch (e) {
		alert("Permission to script was denied. UniversalFileRead");
	}

}






>We couldn't fix that until know and it only happens on windows...
>
>Anyway, put the following diff into your config.xml
>
>https://ssl.bitflux.ch/horde/chora/diff.php/trunk/examples/uni/config.xml?rt=svneditor&ws=0&r1=1027&r2=1444&ty=u
>
>and you will have a new paste-via-form button on top. That should always
>work as it doesn't use nasty-hidden-form-trickery :)
>
>chregu
>
>
>  
>
>>best regards
>>
>>Michael
>>
>>
>>    
>>
>
>  
>

-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users