Summary

This modules helps the content editors to embed javascript to the site with a filter. The editor can use this filter in the WYSIWYG editor too, so he will be able to embed javascript sources into the content.

Usage

Don't allow this filter to unprotected users, because this will cause a security hole in your site!

Filter

You can enable this filter in your text formats but it might not compatible with "Convert URLs into links" and "Convert URLs into links" and if you want to use "Limit allowed HTML tags" format, you have to set "Script filter" filter weight's more to generate script tag after the html tag validate.

The filter usage:

[script type="text/javascript" src="//www.google.com/trends/embed.js?hl=hu&q=Drupal,+OpenSource,+jQuery&date=1/2011+12m&cmpt=q&content=1&cid=TIMESERIES_GRAPH_0&export=5&w=500&h=330"][/script]

All attributes will generated to <script> tag which added to [script].

WYSIWYG module support

The module creates a wysiwyg plugin, so you can embed the patterns easily because it generates this

[script type="text/javascript" src="//www.google.com/trends/embed.js?hl=hu&q=Drupal,+OpenSource,+jQuery&date=1/2011+12m&cmpt=q&content=1&cid=TIMESERIES_GRAPH_0&export=5&w=500&h=330"][/script]

from this:

<script type="text/javascript" src="//www.google.com/trends/embed.js?hl=hu&q=Drupal,+OpenSource,+jQuery&date=1/2011+12m&cmpt=q&content=1&cid=TIMESERIES_GRAPH_0&export=5&w=500&h=330"></script>

Project information

Releases