Modify ↓
Opened 17 years ago
Last modified 16 years ago
#2944 new enhancement
Change behavior of URL drag-and-drop
Reported by: | anonymous | Owned by: | Jun Omae |
---|---|---|---|
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
- in one browser window, open a trac page with a wysiwig editor (eg. wiki edit, ticket, etc)
- in another browser window, load your favorite web page, let's say TracWysiwygPlugin
- 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)
Note: See
TracTickets for help on using
tickets.
dammit, the cool behavior described above using firefox 2.0.0.14 no longer works with firefox 3!!