You are here

function ckeditor_default_skin in CKEditor - WYSIWYG HTML editor 6

Same name and namespace in other branches
  1. 7 includes/ckeditor.lib.inc \ckeditor_default_skin()

Return default skin for CKEditor

Return value

string

1 call to ckeditor_default_skin()
ckeditor_process_textarea in ./ckeditor.module
This function creates the HTML objects required for CKEditor.

File

includes/ckeditor.lib.inc, line 141
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function ckeditor_default_skin() {
  $skin_options = ckeditor_load_skin_options();
  if (array_key_exists('moono', $skin_options)) {
    return 'moono';
  }
  if (array_key_exists('kama', $skin_options)) {
    return 'kama';
  }

  //if any default theme not exists select first from the list
  return key(reset($skin_options));
}