def tinymce(config=:default, options={})
      javascript_tag(nonce: true) do
        unless @_tinymce_configurations_added
          concat tinymce_configurations_javascript
          concat "\n"
          @_tinymce_configurations_added = true
        end

        concat tinymce_javascript(config, options)
      end
    end
def tinymce(config=:default, options={})
      javascript_tag(nonce: true) do
        unless @_tinymce_configurations_added
          concat tinymce_configurations_javascript
          concat "\n"
          @_tinymce_configurations_added = true
        end

        concat tinymce_javascript(config, options)
      end
    end
Initializes TinyMCE on the current page based on the global configuration.

 Custom options can be set via the options hash, which will be passed to
 the TinyMCE init function.

 By default, all textareas with a class of "tinymce" will have the TinyMCE
 editor applied. The current locale will also be used as the language when
 TinyMCE language files are available, falling back to English if not
 available. The :editor_selector and :language options can be used to
 override these defaults.

 @example
   <%= tinymce(selector: "editorClass", theme: "inlite") %>