You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like when you copy and paste an entire html document into the editor (that already has content), DOM elements in the body are duplicated in the Live Preview. This happens regardless of whether the new body content you paste in is the same or different.
I am running the latest version of Brackets on Mac OS X Mavericks.
Here's a screencap of it:
Thanks :)
The text was updated successfully, but these errors were encountered:
Comment by gideonthomas Thursday Feb 19, 2015 at 17:52 GMT
I dug into the code a bit and I think I tracked it down to this function
This statement results in null because the new <html> tag gets a new tagID which cannot be mapped to a corresponding <html> tag in the old DOM structure.
So, it fails the if(oldElement) check and executes this. In the function generateChildEdits, it fails this condition, not entering the loop where the delete/insert operation (delete the old html tag with the old tagID and insert the new one) happens. It instead only does the insert operation.
Seems like the problem comes from passing in null as the first parameter into generateChildEdits. But not sure how to fix it though.
Comment by MohabAli Tuesday Oct 31, 2017 at 12:57 GMT
solved ... just disable (StaticServer)
go to ... Extension manager >> Default >> disable (StaticServer)
and use an alternative (Autosave) extension then enable (auto save (400 ms))
it will be in (File) after installation https://github.com/nmaxcom/brackets-autosaver
run (live preview) enjoy
Thursday Feb 19, 2015 at 17:38 GMT
Originally opened as adobe/brackets#10634
Hi,
It seems like when you copy and paste an entire html document into the editor (that already has content), DOM elements in the body are duplicated in the Live Preview. This happens regardless of whether the new body content you paste in is the same or different.
I am running the latest version of Brackets on Mac OS X Mavericks.
Here's a screencap of it:
![livepreviewfail](https://cloud.githubusercontent.com/assets/5816130/6272186/c6feb5da-b833-11e4-90d0-2f43084f2842.gif)
Thanks :)
The text was updated successfully, but these errors were encountered: