You are here

function bueditor_preset_textarea in BUEditor 7

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

Insert textarea id into preset of the editor.

1 call to bueditor_preset_textarea()
_bueditor_textarea in ./bueditor.inc
Integrate the editor into textarea element.

File

./bueditor.inc, line 104
Implements commonly used functions for bueditor.

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;
}