[pmwiki-users] use pmwiki as code snippet generator
Stef Mientki
s.mientki at mailbox.kun.nl
Fri Feb 24 15:32:42 CST 2006
thanks Joachim and Patrick,
didn't know it was so difficult,
different for different browsers,
and not without security risks.
cheers,
Stef
Patrick R. Michaud wrote:
>On Fri, Feb 24, 2006 at 10:29:45AM +0100, Stef Mientki wrote:
>
>
>>hi All,
>>
>>I would like to use PMwiki as a code-snippet or text-snippet generator.
>>For that I would like to have a button with th following function:
>> Select All (^A)
>> Copy complete content to Clipboard as plain text (^C)
>>
>>I've not the faintest idea if and how this is possible,
>>
>>
>
>In the general case it's not possible.
>
>Programmatic things such as this are performed using Javascript,
>and very few browsers allow Javascript to copy or manipulate
>the clipboard, as it's a security risk. See, for example,
>http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard .
>
>If the people using the site are willing to adjust their browsers'
>security settings, then it can be made to work.
>
>Pm
>
>_______________________________________________
>pmwiki-users mailing list
>pmwiki-users at pmichaud.com
>http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
>
>
More information about the pmwiki-users
mailing list