   toolbarFixed: true
   lang: document.documentElement.lang
   linkNewTab: true
+  callbacks:
+    changed: ->
+      $(@rootElement).trigger('change')
 
 window.folioConsoleInitRedactor = (node, options = {}, additional = {}) ->
   return if node.classList.contains('redactor-source')

  lang: document.documentElement.lang
  formatting: ['p', 'h2', 'h3', 'h4']
  linkNewTab: true

OPTIONS =
  plugins: ['table', 'button', 'character_counter', 'definedlinks']

  toolbarFixed: true
  lang: document.documentElement.lang
  formatting: []
  callbacks:
    changed: ->
      $(@rootElement).trigger('change')

PEREX_OPTIONS =
  plugins: ['character_counter', 'definedlinks']
