Thanks for getting back. I have managed to re-create this problem using the link provided.
These are the steps I followed.
Clicked on the link.
Clicked to the HTML button/editor
Inserted the code as such.
<html>
<head>
<script>
function test(id) {
var element = document.getElementById(id);
for(var i = 0 ; i <element.childNodes.length; i++) {
if(element.childNodes[ i].nodeType == 3) {
continue;
}
element.childNodes[ i].style.visibility = "hidden";
element.childNodes[ i].style.position = "absolute";
}
}
</script>
</head>
<body>
Type you JavaScript here:
</body>
</html>
Pressed the save button.
The result showed me that the text was changed in both the editor and the text area below the submit button.