You are here

function ckeditor_element_info_alter in CKEditor - WYSIWYG HTML editor 7

Implementation of hook_element_info_alter().

Replace the textarea with CKEditor using a callback function (ckeditor_pre_render_text_format).

File

./ckeditor.module, line 286
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function ckeditor_element_info_alter(&$types) {
  $types['text_format']['#pre_render'][] = 'ckeditor_pre_render_text_format';
}