def raw_tiny_mce_init(options = {}, raw_options = nil)
      tinymce_js = ""

      tiny_mce_configurations.each do |configuration|
        configuration.add_options(options, raw_options)
        
        if uses_jquery?
          #TODO: Use dynamic editor_selector from configuration
          tinymce_js += "$(function(){ $('textarea.mceEditor').tinymce("
          tinymce_js += configuration.to_json
          tinymce_js += ");"
          tinymce_js += "});"
        else
          tinymce_js += "tinyMCE.init("
          tinymce_js += configuration.to_json
          tinymce_js += ");"
        end
        
      end

      tinymce_js
    end
def raw_tiny_mce_init(options = {}, raw_options = nil)
      tinymce_js = ""

      tiny_mce_configurations.each do |configuration|
        configuration.add_options(options, raw_options)
        
        if uses_jquery?
          #TODO: Use dynamic editor_selector from configuration
          tinymce_js += "$(function(){ $('textarea.mceEditor').tinymce("
          tinymce_js += configuration.to_json
          tinymce_js += ");"
          tinymce_js += "});"
        else
          tinymce_js += "tinyMCE.init("
          tinymce_js += configuration.to_json
          tinymce_js += ");"
        end
        
      end

      tinymce_js
    end
Parse @tiny_mce_options and @raw_tiny_mce_options to create a raw JS string
 used by TinyMCE. Returns errors if the option or options type is invalid