[Moin-user] Selecting part of a Moin page with JavaScript

Radomir Dopieralski moinmoin at sheep.art.pl
Thu Jul 29 04:00:06 EDT 2010


On Thu, Jul 29, 2010 at 9:31 AM, Kai Jaeger <kai at aplteam.com> wrote:
> Imagine that a Moin wiki is offering code snippets in a given
> programming language.
>
> I've given up the idea to offer a "Copy code" button - that seems to
> be impossible to achieve with all browsers and JavaScript only, but

With javascript no, but it's possible using flash -- github does it
for the repository urls, for example.

> strictly speaking it's not necessary anyway: The nasty part is
> selecting the right part of the page, so a button "Select text" would
> do. Someone interested in programming is certainly to press Ctrl+C
> afterwards.
>
> I wonder whether somebody has solved this already?

-- 
Radomir Dopieralski, http://sheep.art.pl




More information about the Moin-user mailing list