WHY..dosent concrete accept script code in html blocks? Edit function stop when i use it

Permalink
Ask before here, and no answer, and i dont know anyone on concrete to ask.
I need google translate on my page. And try to put this code in the header extracontent:
<meta name="google-translate-customization" content="b6696fbbe64df577-27fdd5eebe18cf97-g9b550a65842d9f4a-12"></meta>

and put this code that need to be on a webpage between body tags, so i put in a html block were i want it to be ( its the google translate - choose language gadget) :
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'no', includedLanguages: 'da,de,el,en,fa,fr,hi,it,iw,ja,nl,pl,pt,ru,sq,sr,sv,th,tr,zh-CN', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

So far so good. The gadget is showing on the page, and i can choose language. THE PROBLEM IS !!!!!!
After put this script code in a html block. The edit function in ALL html blocks stop function. Cant edit none of my html blocks anymore, and...eiter i cant put a new Add layout" to the main area .... ask before..no answer... and the same happend if i use any other js cript cone in a html block...because some scripts needs to (between the body tags )...... please answer someone.... i need to know before i keep on working with my page.

Falconova
 
holmesg replied on at Permalink Reply
Have you tried Simple PHP Block?
Falconova replied on at Permalink Reply
Falconova
I cant find some php block in my 5.7.3 :-(
holmesg replied on at Permalink Reply
Whoops, I missed that this was 5.7.
holmesg replied on at Permalink Reply
Oh, and to get it out of the HTML block, you will probably have to edit it directly in the database.
Falconova replied on at Permalink Reply
Falconova
And i dont know how to do that :-(
Steevb replied on at Permalink Reply
Steevb
Have you tried the 'Multitrans' add-on?

http://www.concrete5.org/marketplace/addons/multitrans/...
Falconova replied on at Permalink Reply
Falconova
Its impossible to install in 5.7.3 :-(
andrew replied on at Permalink Reply
andrew
The HTML block should do fine with JavaScript. I just tested it in 5.7.3. It sounds like the JavaScript you're pasting in is malformed in some way, and when it loads it's breaking the page and thereby breaking the page editing JavaScript in the process.