Dotclear

source: plugins/dcCKEditor/index.php @ 3090:e4c0a9a29852

Revision 3090:e4c0a9a29852, 1.7 KB checked in by Nicolas <nikrou77@…>, 10 years ago (diff)

Users can now add a background text color button using ckeditor

RevLine 
[2738]1<?php
2# -- BEGIN LICENSE BLOCK ---------------------------------------
3#
4# This file is part of Dotclear 2.
5#
[2972]6# Copyright (c) 2003-2015 Olivier Meunier & Association Dotclear
[2738]7# Licensed under the GPL version 2.0 license.
8# See LICENSE file or
9# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10#
11# -- END LICENSE BLOCK -----------------------------------------
12
13if (!defined('DC_CONTEXT_ADMIN')) { return; }
14
[2855]15$is_admin = $core->auth->check('admin,contentadmin', $core->blog->id) || $core->auth->isSuperAdmin();
16
[2738]17$core->blog->settings->addNameSpace('dcckeditor');
18$dcckeditor_active = $core->blog->settings->dcckeditor->active;
19$dcckeditor_alignment_buttons = $core->blog->settings->dcckeditor->alignment_buttons;
20$dcckeditor_list_buttons = $core->blog->settings->dcckeditor->list_buttons;
21$dcckeditor_textcolor_button = $core->blog->settings->dcckeditor->textcolor_button;
[3090]22$dcckeditor_background_textcolor_button = $core->blog->settings->dcckeditor->background_textcolor_button;
[2738]23$dcckeditor_cancollapse_button = $core->blog->settings->dcckeditor->cancollapse_button;
24$dcckeditor_format_select = $core->blog->settings->dcckeditor->format_select;
[2972]25$dcckeditor_format_tags = $core->blog->settings->dcckeditor->format_tags;
[2738]26$dcckeditor_table_button = $core->blog->settings->dcckeditor->table_button;
27$dcckeditor_clipboard_buttons = $core->blog->settings->dcckeditor->clipboard_buttons;
[3052]28$dcckeditor_disable_native_spellchecker = $core->blog->settings->dcckeditor->disable_native_spellchecker;
[2738]29
30if (!empty($_GET['config'])) {
31    // text/javascript response stop stream just after including file
[2761]32    include_once(dirname(__FILE__).'/_post_config.php');
[2738]33    exit();
[2761]34} else {
[2738]35    include_once(dirname(__FILE__).'/inc/_config.php');
36}
Note: See TracBrowser for help on using the repository browser.

Sites map