This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231887 - Drag & Drop to add js / css require to html file
Summary: Drag & Drop to add js / css require to html file
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-27 02:18 UTC by fortruth
Modified: 2014-10-06 13:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fortruth 2013-06-27 02:18:21 UTC
Product Version = NetBeans IDE 7.3.1 (Build 201306052037)
Operating System = Linux version 3.8.0-26-generic running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = OpenJDK 64-Bit Server VM 23.7-b01

could add a drap and drop function to html5 project, 

when Drag&Drop a js/css file to  html type file then directly add

<link rel="stylesheet" href="css file">
<script  type="text/javascript" src="js file"></script>

to the drop point.
Comment 1 mappu04 2014-07-14 04:44:02 UTC
Hi!

I recently upgraded from 7.2 to 8.0. It looks like this bug was fixed, when i drag and drop a .js file i get a <script> tag, when i drag and drop any other file i get an <a> tag.

HOWEVER i want to open files in NetBeans via drag and drop. In 7.2 i could drag a php file into an open netbeans window and it would open the file in a new tab for editing. In fact, i also edit .js and .css files in NetBeans because of its highlighting and i expected to be able to open them this way as well.

Drag-to-open has always worked AFAICR and it is part of the NetBeans File Drag and Drop UI Specification from https://core.netbeans.org/proposals/dnd-ui-spec.html .

But now it is broken.

Is it possible to revert this behaviour?

Or disable it via an option?