You are here

editor.profiles.inc in Editor 5

Same filename and directory in other branches
  1. 6 editor.profiles.inc

Provides default profiles. @author Tj Holowaychuk <http://www.350designs.com/> @package Editor

File

editor.profiles.inc
View source
<?php

/**
 * @file 
 * Provides default profiles.
 * @author Tj Holowaychuk <http://www.350designs.com/>
 * @package Editor
 */

/**
 * Default editor profiles.
 */
function editor_editor_profiles() {
  $profiles = array();

  // Small
  $profile_string = 'bold italic | align_left align_center align_right | link mailto image ';
  $profiles[] = editor_profile_create('small', t('Small'), $profile_string, t('Limits to basic plugins.'));

  // Large
  $profile_string = 'bold italic list_numeric list_bullet | align_left align_center align_right align_justify | table link mailto image code | undo redo remove_format html';
  $profiles[] = editor_profile_create('large', t('Large'), $profile_string, t('All core plugins.'));
  return $profiles;
}

Functions

Namesort descending Description
editor_editor_profiles Default editor profiles.