function tinymce_elements in TinyMCE 5.2
Same name and namespace in other branches
- 5 tinymce.module \tinymce_elements()
- 6.2 tinymce.module \tinymce_elements()
- 6 tinymce.module \tinymce_elements()
Implementation of hook_elements().
File
- ./
tinymce.module, line 61 - Integrate the TinyMCE editor (http://tinymce.moxiecode.com/) into Drupal.
Code
function tinymce_elements() {
$type = array();
if (user_access('access tinymce')) {
// Set resizable to false to avoid drupal.js resizable function from taking control of the textarea
$type['textarea'] = array(
'#process' => array(
'tinymce_process_textarea' => array(),
),
'#resizable' => TRUE,
);
}
return $type;
}