Is it other that have problem when using jscrip in a html block?
Permalink
As i see, and figured out. Concrete 5.7.2 and 5.7.2.1 cant have a jscript in a html block. I have try it with Google translate script, and with Visual lightbox that need a script in the same html block were the links to the picture are.
When i put a jscript as mention over in a html block- i after can not edit none html blocks anymore. When i put the cursor over the blocks, OR try to make a new Ad layout in the Main area. The cursor is still a arrow and not be a hand so i can edit blocks or add a new layout.
Here is the js script i try to use that make that trouble:
Google translate script: <div id="google_translate_element">
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'no', includedLanguages: 'da,es,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.SIMPLE}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></td>
Visual lightbox script that need to be in the body: <script src="gallery2_files/vlb_engine/thumbscript2.js" type="text/javascript"></script>
<script src="gallery2_files/vlb_engine/vlbdata2.js" type="text/javascript"></script>
When i put a jscript as mention over in a html block- i after can not edit none html blocks anymore. When i put the cursor over the blocks, OR try to make a new Ad layout in the Main area. The cursor is still a arrow and not be a hand so i can edit blocks or add a new layout.
Here is the js script i try to use that make that trouble:
Google translate script: <div id="google_translate_element">
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'no', includedLanguages: 'da,es,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.SIMPLE}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></td>
Visual lightbox script that need to be in the body: <script src="gallery2_files/vlb_engine/thumbscript2.js" type="text/javascript"></script>
<script src="gallery2_files/vlb_engine/vlbdata2.js" type="text/javascript"></script>