Dotclear

source: plugins/dcCKEditor/index.php @ 2972:8099686135fe

Revision 2972:8099686135fe, 1.5 KB checked in by Nicolas <nikrou77@…>, 10 years ago (diff)

Allow customizing CKEditor formats
Fixes #2070

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ---------------------------------------
3#
4# This file is part of Dotclear 2.
5#
6# Copyright (c) 2003-2015 Olivier Meunier & Association Dotclear
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
15$is_admin = $core->auth->check('admin,contentadmin', $core->blog->id) || $core->auth->isSuperAdmin();
16
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;
22$dcckeditor_cancollapse_button = $core->blog->settings->dcckeditor->cancollapse_button;
23$dcckeditor_format_select = $core->blog->settings->dcckeditor->format_select;
24$dcckeditor_format_tags = $core->blog->settings->dcckeditor->format_tags;
25$dcckeditor_table_button = $core->blog->settings->dcckeditor->table_button;
26$dcckeditor_clipboard_buttons = $core->blog->settings->dcckeditor->clipboard_buttons;
27
28if (!empty($_GET['config'])) {
29    // text/javascript response stop stream just after including file
30    include_once(dirname(__FILE__).'/_post_config.php');
31    exit();
32} else {
33    include_once(dirname(__FILE__).'/inc/_config.php');
34}
Note: See TracBrowser for help on using the repository browser.

Sites map