[WV] Webvelocity 1.1: Code editing with Safari 5.0.1 (OS 10.5.8)

5 views
Skip to first unread message

joh

unread,
Sep 10, 2010, 5:07:15 AM9/10/10
to WebVelocity
Hi!

Using commad-v the contents of the clipboard is pasted always twice.
This does not happen using Firefox.


Joh.


________________________________


Staatlich anerkannte private Fachhochschule
NORDAKADEMIE
Gemeinnützige Aktiengesellschaft
Köllner Chaussee 11
25337 Elmshorn

Vorstand:
Prof. Dr. Georg Plate (Vorsitzender), Dipl.-Ing. Jörg Meier (stellv. Vorstand)

Vorsitzender des Aufsichtsrats:
Dr. h.c. Hans-Heinrich Bruns

Sitz:
Elmshorn, Amtsgericht Elmshorn, HRB 1682

Michael Lucas-Smith

unread,
Mar 22, 2011, 1:30:34 PM3/22/11
to webve...@googlegroups.com
I have an untested patch for this from AR62717. In Weave.TextEditor>>clipboardPaste(event) add the following two lines:

event.stopPropagation();
event.preventDefault();

Cheers,
Michael

> --
> You received this message because you are subscribed to the Google Groups "WebVelocity" group.
> To post to this group, send email to webve...@googlegroups.com.
> To unsubscribe from this group, send email to webvelocity...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webvelocity?hl=en.
>

Dr. Johannes Brauer

unread,
Mar 24, 2011, 5:41:44 PM3/24/11
to webve...@googlegroups.com
Thanks Michael,

this patch works for me. But how can I save it so that I must not
repeat the modification after a restart of WV.

Cheers,
Johannes

Michael Lucas-Smith

unread,
Mar 24, 2011, 6:05:35 PM3/24/11
to webve...@googlegroups.com
You can apply the patch as a fileout and put it in the autoload directory. It'll load in to the server on start up every time that way.

Michael

Dr. Johannes Brauer

unread,
Mar 25, 2011, 5:07:04 PM3/25/11
to webve...@googlegroups.com
I have deployed the Weave-Widgets parcel and copied the files to the
autoload directory. But the parcel is not loaded, I see the unmodified
Weave.TextEditor>>clipboardPaste(event).
What I am doing wrong?

Johannes

Michael Lucas-Smith

unread,
Mar 25, 2011, 5:25:12 PM3/25/11
to webve...@googlegroups.com
You should see it being loaded in the startup messages (if you're on mac they'll be in the Console application).

I've attached the patch, try it instead of the parcels you created.

Michael

doublepaste.st

Dr. Johannes Brauer

unread,
Mar 25, 2011, 6:10:56 PM3/25/11
to webve...@googlegroups.com
thanks a lot, your st-file is loaded, the patch works.

Is it possible to create a st-file from WV?

Johannes

> <doublepaste.st>--

Michael Lucas-Smith

unread,
Mar 26, 2011, 4:24:44 AM3/26/11
to webve...@googlegroups.com
Not directly, no. But the st-file is just XML. The format, I believe, is fairly straight forward.

Michael

Reply all
Reply to author
Forward
0 new messages