You are here

function wysiwyg_yui_load in Wysiwyg 7.2

Same name and namespace in other branches
  1. 5.2 editors/yui.inc \wysiwyg_yui_load()
  2. 5 editors/yui.inc \wysiwyg_yui_load()
  3. 6.2 editors/yui.inc \wysiwyg_yui_load()
  4. 6 editors/yui.inc \wysiwyg_yui_load()

Perform additional actions upon loading this editor.

Parameters

$editor: A processed hook_editor() array of editor properties.

$library: The internal library name (array key) to use.

1 string reference to 'wysiwyg_yui_load'
wysiwyg_yui_editor in editors/yui.inc
Plugin implementation of hook_editor().

File

editors/yui.inc, line 161
Editor integration functions for YUI editor.

Code

function wysiwyg_yui_load($editor, $library) {
  drupal_add_css($editor['library path'] . '/menu/assets/skins/sam/menu.css');
  drupal_add_css($editor['library path'] . '/button/assets/skins/sam/button.css');
  drupal_add_css($editor['library path'] . '/fonts/fonts-min.css');
  drupal_add_css($editor['library path'] . '/container/assets/skins/sam/container.css');
  drupal_add_css($editor['library path'] . '/editor/assets/skins/sam/editor.css');
}