brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

Copying contents from a HTML file will also copy CSS contents in quick-edit, without actually displaying those properties. #13679

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by badakim1091 Thursday Aug 18, 2016 at 18:09 GMT Originally opened as https://github.com/adobe/brackets/issues/12692


OS X El Capitan 10.11.5 MacBook Pro 2015

When you copy contents from a HTML file to a new HTML file in a different directory, it also copies CSS contents and displays it in quick-edit view. However, the CSS is not actually applied to the HTML content.

  1. Create a new directory called project1
  2. Create a new index.html file in the project1 folder
  3. Copy the contents from index.html in Getting Started folder or the Brackets
  4. Paste the contents from step 3 to the new index.html file in the project 1 folder
  5. Move the cursor to tag in the new index.html
  6. Press command+E to pull quick-edit
core-ai-bot commented 3 years ago

Comment by MarcelGerber Thursday Aug 18, 2016 at 18:38 GMT


That's because Brackets tries to find the most related stylesheets, and if it cannot find one, it searches through all stylesheets in the project. So, your CSS is not copied, it's just that the file you see in Quick Edit is that of the Getting Started folder. You'll also see its full path when hovering over the file name.

core-ai-bot commented 3 years ago

Comment by badakim1091 Thursday Aug 18, 2016 at 18:44 GMT


The thing is, even if I make another CSS file that has the name of main.css in the folder with the new copied html, and make the main.css empty, quick-edit still pulls the information from the old CSS..