You are here

function bueditor_preset_textarea in BUEditor 6

Same name and namespace in other branches
  1. 6.2 bueditor.inc \bueditor_preset_textarea()
  2. 7 bueditor.inc \bueditor_preset_textarea()

Insert textarea id into preset of the editor.

1 call to bueditor_preset_textarea()
bueditor_textarea in ./bueditor.module
Integrate the editor into textareas.

File

./bueditor.module, line 153

Code

function bueditor_preset_textarea($tid, $editor) {
  if ($editor && !bueditor_check_match($editor->excludes, $tid)) {
    bueditor_settle($editor);
    $settings['BUE']['preset'][$tid] = 'e' . $editor->eid;
    drupal_add_js($settings, 'setting');
    return TRUE;
  }
  return FALSE;
}