forked from nao-pon/ckeditor4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
β‘ π¨ π¨ Update CKEditor4 v4.19.0
Language (En, Fr, Ja, Pt) + plugin codemirror
- Loading branch information
1 parent
69455b7
commit 16001e0
Showing
501 changed files
with
21,366 additions
and
12,523 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,36 @@ | ||
<?php | ||
|
||
require_once '../../../mainfile.php'; | ||
require_once XOOPS_ROOT_PATH . '/header.php'; | ||
require_once XOOPS_ROOT_PATH . '/modules/ckeditor4/class/Ckeditor4Utiles.class.php'; | ||
|
||
$mid = Ckeditor4_Utils::getMid(); | ||
if (defined('LEGACY_BASE_VERSION')) { | ||
$pref = XOOPS_MODULE_URL . '/legacy/admin/index.php?action=PreferenceEdit&confmod_id='; | ||
$help = '<li><a href="'.XOOPS_MODULE_URL.'/legacy/admin/index.php?action=Help&dirname=ckeditor4">'._HELP.'</a></li>'; | ||
} else { | ||
$pref = XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod='; | ||
$help = ''; | ||
} | ||
?> | ||
|
||
<h3>CKEditor 4 for XOOPS Cube Legacy</h3> | ||
|
||
<hr /> | ||
|
||
<ul> | ||
<li><a href="<?php echo $pref.$mid ?>"><?php echo _PREFERENCES ?></a></li> | ||
<?php echo $help ?> | ||
</ul> | ||
|
||
<?php | ||
require_once XOOPS_ROOT_PATH . "/footer.php"; | ||
|
||
?> | ||
<?php | ||
/** | ||
* CKEditor4 module for XCL | ||
* @package CKEditor4 | ||
* @version 2.3.1 | ||
* @author Other authors Nuno Luciano (aka gigamaster), 2020, XCL PHP7 | ||
* @author Naoki Sawada (aka nao-pon) <https://xoops.hypweb.net/> | ||
* @copyright 2005-2022 The XOOPSCube Project | ||
* @license GPL 2.0 | ||
*/ | ||
|
||
require_once '../../../mainfile.php'; | ||
require_once XOOPS_ROOT_PATH . '/header.php'; | ||
require_once XOOPS_ROOT_PATH . '/modules/ckeditor4/class/Ckeditor4Utiles.class.php'; | ||
|
||
$mid = Ckeditor4_Utils::getMid(); | ||
if (defined('LEGACY_BASE_VERSION')) { | ||
$pref = XOOPS_MODULE_URL . '/legacy/admin/index.php?action=PreferenceEdit&confmod_id='; | ||
$help = '<li><a href="' . XOOPS_MODULE_URL . '/legacy/admin/index.php?action=Help&dirname=ckeditor4">' . _HELP . '</a></li>'; | ||
} else { | ||
$pref = XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod='; | ||
$help = ''; | ||
} | ||
?> | ||
|
||
<h3>CKEditor 4 for XCL</h3> | ||
|
||
<hr> | ||
|
||
<ul> | ||
<li><a href="<?php echo $pref . $mid ?>"><?php echo _PREFERENCES ?></a></li> | ||
<?php echo $help ?> | ||
</ul> | ||
|
||
<?php | ||
require_once XOOPS_ROOT_PATH . "/footer.php"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,46 @@ | ||
<?php | ||
function xoops_module_update_ckeditor4() { | ||
/** | ||
* CKEditor4 module for XCL | ||
* @package CKEditor4 | ||
* @version 2.3.1 | ||
* @author Other authors Nuno Luciano (aka gigamaster), 2020, XCL PHP7 | ||
* @author Naoki Sawada (aka nao-pon) <https://xoops.hypweb.net/> | ||
* @copyright 2005-2022 The XOOPSCube Project | ||
* @license GPL 2.0 | ||
*/ | ||
|
||
function xoops_module_update_ckeditor4() | ||
{ | ||
$module_handler = xoops_gethandler('module'); | ||
$Module = $module_handler->getByDirname('ckeditor4'); | ||
$config_handler = xoops_gethandler('config'); | ||
$mid = $Module->mid(); | ||
$ModuleConfig = $config_handler->getConfigsByCat(0, $mid); | ||
|
||
if (substr($ModuleConfig['toolbar_user'], -4) === '""]]') { | ||
//fix typo '""]]' to '"]]' for version <= 0.37 | ||
$criteria = new CriteriaCompo(new Criteria('conf_modid', $mid)); | ||
$criteria->add(new Criteria('conf_catid', 0)); | ||
$criteria->add(new Criteria('conf_name', 'toolbar_user')); | ||
|
||
if ($configs = $config_handler->_cHandler->getObjects($criteria)) { | ||
$val = str_replace('""]]', '"]]', $ModuleConfig['toolbar_user']); | ||
$configs[0]->setVar('conf_value', $val, true); | ||
$config_handler->insertConfig($configs[0]); | ||
} | ||
} | ||
|
||
if (preg_match('/^head\s*$/m', $ModuleConfig['contentsCss'])) { | ||
//fix typo 'head' to '<head>' for version <= 0.38 | ||
$criteria = new CriteriaCompo(new Criteria('conf_modid', $mid)); | ||
$criteria->add(new Criteria('conf_catid', 0)); | ||
$criteria->add(new Criteria('conf_name', 'contentsCss')); | ||
|
||
if ($configs = $config_handler->_cHandler->getObjects($criteria)) { | ||
$val = preg_replace('/^head(\s*)$/m', '<head>$1', $ModuleConfig['contentsCss']); | ||
$configs[0]->setVar('conf_value', $val, true); | ||
$config_handler->insertConfig($configs[0]); | ||
} | ||
} | ||
return true; | ||
} | ||
} |
Oops, something went wrong.