<% cmtool = Cmtool::Engine.routes.url_helpers %>
$( ->
  $('textarea.mceEditor, .editor_full').tinymce(
    theme: 'advanced',
    plugins: 'advimage',
    language: tinymce_language,
    external_image_list_url: '<%= cmtool.images_path(format: :js) %>',
    relative_urls: false
  )
  $('.editor_basic').tinymce({theme: 'simple', language: tinymce_language})
)
