You are here

function tinymce_elements in TinyMCE 6

Same name and namespace in other branches
  1. 5.2 tinymce.module \tinymce_elements()
  2. 5 tinymce.module \tinymce_elements()
  3. 6.2 tinymce.module \tinymce_elements()

Implementation of hook_elements().

File

./tinymce.module, line 72
Integrate the TinyMCE editor (http://tinymce.moxiecode.com/) into Drupal.

Code

function tinymce_elements() {
  $type = array();
  if (user_access('access tinymce')) {

    // Let TinyMCE potentially process each textarea.
    $type['textarea'] = array(
      '#process' => array(
        'tinymce_process_textarea',
      ),
    );
  }
  return $type;
}