Javascript Field Formatter

Component ID

2154735

Component name

Javascript Field Formatter

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1320

Component created

Component changed

Component body

Formats a text field inside

and behaviour tags, e.g.
  <script>
    Drupal.behaviors.[random] = {
      attach: function (context, settings) {
        [field value]
      }
    };
  <script>
Use of this field will of course allow anyone who can configure this formatter/add input to a textfield using this formatter to execute javascript. Security note: ONLY use this formatter with fields entered by trusted users. If this module is installed, anyone who can configure formatters for text fields cold configure this formatter, so only install this module if users configuring field formatters can input javascript.