diff --git a/editor/ui/dialogs/content/EdInsSrc.js b/editor/ui/dialogs/content/EdInsSrc.js index 8001415802c0..64668730d62a 100644 --- a/editor/ui/dialogs/content/EdInsSrc.js +++ b/editor/ui/dialogs/content/EdInsSrc.js @@ -46,9 +46,8 @@ function Startup() dump("Not all dialog controls were found!!!\n"); } - selection = editorShell.GetContentsAs("text/html", 1); - selection = (selection.replace(//,"")).replace(/<\/body>/,""); - //dump("Got selection: '" + selection + "'\n"); + selection = editorShell.GetContentsAs("text/html", 35); + selection = (selection.replace(/]*>/,"")).replace(/<\/body>/,""); if (selection != "") dialog.srcInput.value = selection;