def tinymce_javascript(config=:default, options={})
      options, config = config, :default if config.is_a?(Hash)
      options = Configuration.new(options)

      "TinyMCERails.initialize('#{config}', #{options.to_javascript});".html_safe
    end
def tinymce_javascript(config=:default, options={})
      options, config = config, :default if config.is_a?(Hash)
      options = Configuration.new(options)

      "TinyMCERails.initialize('#{config}', #{options.to_javascript});".html_safe
    end
Returns the JavaScript code required to initialize TinyMCE.