another ckeditor skin added

This commit is contained in:
gtbu 2025-02-14 17:48:31 +01:00
parent d6e1afe899
commit 0ead7974ca
15 changed files with 19 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 953 B

View file

@ -0,0 +1,5 @@
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.skin.name="office2013";CKEDITOR.skin.ua_editor="";CKEDITOR.skin.ua_dialog="";CKEDITOR.skin.chameleon=function(){return""};

View file

@ -584,8 +584,8 @@ namespace gp\tool{
echo 'CKEDITOR.on("instanceReady", function(evt){';
/* echo 'console.log("triggered editor:loaded event with ", { section: evt.editor.element["$"], section_type: "other", label: evt.editor.name });'; */
echo '$(document).trigger("editor:loaded", { editor: evt.editor, section: evt.editor.element["$"], section_type: "other", label: evt.editor.name });';
echo '});';
echo '});';
echo '});';
echo "\n\n";
$page->jQueryCode .= ob_get_clean();
@ -617,7 +617,7 @@ namespace gp\tool{
*
*/
public static function CKConfig($options = array(), $config_name = 'config', &$plugins = array()) {
global $config;
global $config, $cskin;
$plugins = array();
// Read the skin value from config.js
@ -656,13 +656,10 @@ namespace gp\tool{
);
if( $config['langeditor'] == 'inherit' ){
$defaults['language'] = $config['language'];
}else{
$defaults['language'] = $config['langeditor'];
}
$defaults['language'] = ($config['langeditor'] == 'inherit') ? $config['language'] : $config['langeditor'];
// 3) $options
$defaults['skin'] = $cskin;
$options += $defaults;