andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

javascript in the html preview #59

Closed andreikop closed 12 years ago

andreikop commented 12 years ago

By Cyril Andreatta from enki-bugs@:

I have a html file open for editing in enki:

<html> 
<head> 
<title>TEST</title> 
</head> 

<body onload=warning()> 
<script> 
     function warning(){ 
         alert("is this a bug?") 
     } 
</script> 

</body> 
</html> 

Now whenever I press ENTER the function 'warning' is called and a little dialogbox with the alert-message is shown in the editor. If I remove the onload statement it's OK.

andreikop commented 12 years ago

I'll probably add check box "enable java script". Default "true", saves it's state if enki is closed and reopened.

andreikop commented 12 years ago

I decided to release it in 12.11, not in 12.10 Any new functionality might break something.

andreikop commented 12 years ago

done