Hello,
I have working on a plugin to bring following two syntax for per-page solution for inline JavaScript, namely "preloader" and "embedder".
The preloader makes specified files to be loaded in <head> section of HTML, and the embedder allow inline JavaScript in a DW page ensuring the script is inside of CDATA section in accordance with the guidance provided at
devel:javascript page. This plugin consists two syntax and one action components. Source will find at my
github.
[indent]
<PRELOAD>
/path/to/stylesheet.css
/path/to/javascript.js
</PRELOAD>
<JS>...</JS>
[/indent]
For security reason i.e. Cross Site Scripting attacks especially on a freely accessible wiki site, these two syntax is designed to work only if the
htmlok is enabled. I am using this plugin to incorporate some JavaScript Chart/Plot (for example,
jqPlot) in a DokuWiki page. I think this plugin may also useful for someone.
Prior to create a plugin page, I would like to ask some member of "plugins & templates team" to review my php code of this plugin. This is because that I am not a professional programmer even having some year's experience to operate some different DokuWiki sites. I should be cautious not to spread any security risk by lacking awareness of them.
Thanks for your attention to this post.