--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!
Thanks Bob
i mean the with block editor js code is not executed
I send you three examples made with different editors
where you see that with the block editor
the js code remains text
use an HTML block if you want to execute the script instead of a “script” block which only displays the script.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!
Thanks Bob
I confirm that in the Block editor, I use the HTML icon and put the script
between the tags p and p of the html block.
But then if I look at the online code of the generated post
“script” becomes “publii-script” and is not interpreted correctly.
What am I doing wrong? Thanks for your help
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!
One more about {{js “filepath.js”}} in https://getpublii.com/dev/js-helper/
I am trying to use the link to the assets directory (which one? Because there are several) e.g \ input \ themes \ simple \ assets \ js?
This helper is always looking for the script file in the following localization: (Documents ▸ Publii ▸ sites ▸ YOUR_SITE ▸ input ▸ themes ▸ YOUR_THEME ▸ assets ▸ js)
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!
I’m trying to link the w3.js file I put in the foder
“Documents \ Publii \ sites \ mysite \ input \ themes \ simple \ assets \ js \”
with the helper src=”{{js” w3.js “}}”
but it doesn’t work locally
and in the generated html code remains src=”{{js” w3.js “}}”
see http://test.allenati.it/helper.html
can you help me understand the problem
thank you
It needs to be embedded in the source files like head.hbs, footer.hbs, or any other, not in the post body.
<script src="{{js "w3.js"}}"></script>
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!