function ckeditor_process_hidden in CKEditor - WYSIWYG HTML editor 6
1 string reference to 'ckeditor_process_hidden'
- ckeditor_elements in ./
ckeditor.module - Implementation of hook_elements(). Replace the textarea with CKEditor using a callback function (ckeditor_process_textarea)
File
- ./
ckeditor.module, line 160 - CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
Code
function ckeditor_process_hidden($element, $edit, $form_state, $complete_form) {
if (!empty($element['#value']) && in_array($element['#value'], array(
'panels_edit_display_form',
'panels_panel_context_edit_content',
))) {
$fake_element = array(
'#id' => 'edit-body',
);
ckeditor_process_textarea($fake_element);
}
return $element;
}