Modify

Opened 7 years ago

Last modified 7 years ago

#2944 new enhancement

Change behavior of URL drag-and-drop

Reported by: anonymous Owned by: jun66j5
Priority: normal Component: TracWysiwygPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

a highly desirable enhancement to the already amazing TracWysiwygPlugin would be to modify the behavior when you drag-and-drop a url from one browser window into a TracWysiwig editor.

steps to repro

  1. in one browser window, open a trac page with a wysiwig editor (eg. wiki edit, ticket, etc)
  2. in another browser window, load your favorite web page, let's say TracWysiwygPlugin
  3. drag the url from the browser's address bar into the wysiwig editor

desired result

  • a link to the url http://trac-hacks.org/wiki/TracWysiwygPlugin gets created with the text from the <title> of that page (in this example, "TracWysiwygPlugin - Trac Hacks - Plugins Macros etc. - Trac"). i.e. in wiki markup, something like:
    [http://trac-hacks.org/wiki/TracWysiwygPlugin TracWysiwygPlugin - Trac Hacks - Plugins Macros etc. - Trac]
    

actual result (using firefox 2.0.0.14, trac 0.10.4, TracWysiwyg 0.2-r3414)

  • just the raw url with no surrounding [] that gets linkified by trac (wiki markup):
    http://trac-hacks.org/wiki/TracWysiwygPlugin
    

i don't know anything about python, trac plugins or drag-and-drop, but i think this should be possible since repeating the steps above and dragging a url into a normal textarea results in the following wiki markup:

http://trac-hacks.org/wiki/TracWysiwygPlugin
TracWysiwygPlugin - Trac Hacks - Plugins Macros etc. - Trac

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by anonymous

dammit, the cool behavior described above using firefox 2.0.0.14 no longer works with firefox 3!!

Add Comment

Modify Ticket

Action
as new The owner will remain jun66j5.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.