id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
2944,Change behavior of URL drag-and-drop,anonymous,Jun Omae,"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)
1. in another browser window, load your favorite web page, let's say [http://trac-hacks.org/wiki/TracWysiwygPlugin TracWysiwygPlugin]
1. 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
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
}}}",enhancement,new,normal,TracWysiwygPlugin,normal,,,,0.10