function bueditor_preset_textarea in BUEditor 6.2
Same name and namespace in other branches
- 6 bueditor.module \bueditor_preset_textarea()
- 7 bueditor.inc \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 textareas.
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;
}