Reply to comment

Quick Tip: Allowing JavaScript in Blocks

There are those few times when you want or need JavaScript to be allowed within blocks or nodes. The trick is simply to create a new Input Filter which does not use the HTML Filter.

Designate the filter for use by specific roles, and you’re ready to rock and roll!

You just want to make sure only trusted users can use this input format. Most of the time, only the Admin user will be able to use it.

NOTE: the default Full HTML filter does allow you to post JavaScript. Creating your own additional filter with a unique name is simply be nice way to clearly identify what that filter does.

Reply

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see and Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options