Ckeditor skin as variable
More Skins in the ckeditor - Skins- directory (for earlier versions of Typesetter is Maholitos's CKE_Themes - Plugin available )
5
include/thirdparty/ckeditor/skins/kama/dialog.css
vendored
Normal file
5
include/thirdparty/ckeditor/skins/kama/dialog_ie.css
vendored
Normal file
5
include/thirdparty/ckeditor/skins/kama/dialog_ie7.css
vendored
Normal file
5
include/thirdparty/ckeditor/skins/kama/dialog_ie8.css
vendored
Normal file
5
include/thirdparty/ckeditor/skins/kama/dialog_iequirks.css
vendored
Normal file
5
include/thirdparty/ckeditor/skins/kama/editor.css
vendored
Normal file
5
include/thirdparty/ckeditor/skins/kama/editor_ie.css
vendored
Normal file
5
include/thirdparty/ckeditor/skins/kama/editor_ie7.css
vendored
Normal file
5
include/thirdparty/ckeditor/skins/kama/editor_ie8.css
vendored
Normal file
5
include/thirdparty/ckeditor/skins/kama/editor_iequirks.css
vendored
Normal file
BIN
include/thirdparty/ckeditor/skins/kama/icons.png
vendored
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
include/thirdparty/ckeditor/skins/kama/icons_hidpi.png
vendored
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
include/thirdparty/ckeditor/skins/kama/images/dialog_sides.gif
vendored
Normal file
After Width: | Height: | Size: 47 B |
BIN
include/thirdparty/ckeditor/skins/kama/images/dialog_sides.png
vendored
Normal file
After Width: | Height: | Size: 125 B |
BIN
include/thirdparty/ckeditor/skins/kama/images/dialog_sides_rtl.png
vendored
Normal file
After Width: | Height: | Size: 128 B |
BIN
include/thirdparty/ckeditor/skins/kama/images/mini.gif
vendored
Normal file
After Width: | Height: | Size: 181 B |
BIN
include/thirdparty/ckeditor/skins/kama/images/spinner.gif
vendored
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
include/thirdparty/ckeditor/skins/kama/images/sprites.png
vendored
Normal file
After Width: | Height: | Size: 6 KiB |
BIN
include/thirdparty/ckeditor/skins/kama/images/sprites_ie6.png
vendored
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
include/thirdparty/ckeditor/skins/kama/images/toolbar_start.gif
vendored
Normal file
After Width: | Height: | Size: 102 B |
38
include/thirdparty/ckeditor/skins/kama/readme.md
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
"Kama" Skin
|
||||
====================
|
||||
|
||||
"Kama" is the default skin of CKEditor 3.x.
|
||||
It's been ported to CKEditor 4 and fully featured.
|
||||
|
||||
For more information about skins, please check the [CKEditor Skin SDK](https://ckeditor.com/docs/ckeditor4/latest/guide/skin_sdk_intro.html)
|
||||
documentation.
|
||||
|
||||
Directory Structure
|
||||
-------------------
|
||||
|
||||
CSS parts:
|
||||
- **editor.css**: the main CSS file. It's simply loading several other files, for easier maintenance,
|
||||
- **mainui.css**: the file contains styles of entire editor outline structures,
|
||||
- **toolbar.css**: the file contains styles of the editor toolbar space (top),
|
||||
- **richcombo.css**: the file contains styles of the rich combo ui elements on toolbar,
|
||||
- **panel.css**: the file contains styles of the rich combo drop-down, it's not loaded
|
||||
until the first panel open up,
|
||||
- **elementspath.css**: the file contains styles of the editor elements path bar (bottom),
|
||||
- **menu.css**: the file contains styles of all editor menus including context menu and button drop-down,
|
||||
it's not loaded until the first menu open up,
|
||||
- **dialog.css**: the CSS files for the dialog UI, it's not loaded until the first dialog open,
|
||||
- **reset.css**: the file defines the basis of style resets among all editor UI spaces,
|
||||
- **preset.css**: the file defines the default styles of some UI elements reflecting the skin preference,
|
||||
- **editor_XYZ.css** and **dialog_XYZ.css**: browser specific CSS hacks.
|
||||
|
||||
Other parts:
|
||||
- **skin.js**: the only JavaScript part of the skin that registers the skin, its browser specific files and its icons and defines the Chameleon feature,
|
||||
- **icons/**: contains all skin defined icons,
|
||||
- **images/**: contains a fill general used images.
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
||||
|
||||
For licensing, see LICENSE.md or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license)
|
8
include/thirdparty/ckeditor/skins/kama/skin.js
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
/*
|
||||
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.skin.name="kama";CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8";CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8";
|
||||
CKEDITOR.skin.chameleon=function(d,c){var b,a="."+d.id;"editor"==c?b=a+" .cke_inner,"+a+" .cke_dialog_tab{background-color:$color;linear-gradient( to bottom,#fff -15px,$color 40px );}"+a+" .cke_toolgroup{linear-gradient( to bottom,#fff,$color 100px );}"+a+" .cke_combo_button{linear-gradient( to top,#fff,$color 100px );}"+a+" .cke_dialog_contents,"+a+" .cke_dialog_footer{background-color:$color !important;}"+a+" .cke_dialog_tab:hover,"+a+" .cke_dialog_tab:active,"+a+" .cke_dialog_tab:focus,"+a+" .cke_dialog_tab_selected{background-color:$color;background-image:none;}":
|
||||
"panel"==c&&(b=".cke_menubutton_icon{background-color:$color !important;border-color:$color !important;}.cke_menubutton:hover .cke_menubutton_icon,.cke_menubutton:focus .cke_menubutton_icon,.cke_menubutton:active .cke_menubutton_icon{background-color:$color !important;border-color:$color !important;}.cke_menubutton:hover .cke_menubutton_label,.cke_menubutton:focus .cke_menubutton_label,.cke_menubutton:active .cke_menubutton_label{background-color:$color !important;}.cke_menubutton_disabled:hover .cke_menubutton_label,.cke_menubutton_disabled:focus .cke_menubutton_label,.cke_menubutton_disabled:active .cke_menubutton_label{background-color: transparent !important;}.cke_menubutton_disabled:hover .cke_menubutton_icon,.cke_menubutton_disabled:focus .cke_menubutton_icon,.cke_menubutton_disabled:active .cke_menubutton_icon{background-color:$color !important;border-color:$color !important;}.cke_menubutton_disabled .cke_menubutton_icon{background-color:$color !important;border-color:$color !important;}.cke_menuseparator{background-color:$color !important;}.cke_menubutton:hover,.cke_menubutton:focus,.cke_menubutton:active{background-color:$color !important;}");
|
||||
return b};
|
|
@ -616,7 +616,7 @@ namespace gp\tool{
|
|||
* Configuration precedence: (1) User (2) Addon (3) $options (4) CMS
|
||||
*
|
||||
*/
|
||||
public static function CKConfig( $options = array(), $config_name = 'config', &$plugins = array() ){
|
||||
public static function CKConfig( $options = array(), $config_name = 'config', &$plugins = array(), $Ckskin='moono-lisa' ){
|
||||
global $config;
|
||||
|
||||
$plugins = array();
|
||||
|
@ -624,7 +624,7 @@ namespace gp\tool{
|
|||
// 4) CMS defaults
|
||||
$defaults = array(
|
||||
//'customConfig' => \gp\tool::GetDir('/include/js/ckeditor_config.js'),
|
||||
'skin' => 'moono-lisa',
|
||||
'skin' => $Ckskin,
|
||||
'browser' => true, //not actually a ckeditor configuration value, but we're keeping it now for reverse compat
|
||||
'smiley_path' => \gp\tool::GetDir('/include/thirdparty/ckeditor/plugins/smiley/images/'),
|
||||
'height' => 300,
|
||||
|
|