Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/colorpicker.zip
Назад
PK ʙ!]ۓ��� � plugin.min.jsnu &1i� tinymce.PluginManager.add("colorpicker",function(e){function t(t,n){function r(e){var t=new tinymce.util.Color(e),n=t.toRgb();o.fromJSON({r:n.r,g:n.g,b:n.b,hex:t.toHex().substr(1)}),i(t.toHex())}function i(e){o.find("#preview")[0].getEl().style.background=e}var o=e.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:n,onchange:function(){var e=this.rgb();o&&(o.find("#r").value(e.r),o.find("#g").value(e.g),o.find("#b").value(e.b),o.find("#hex").value(this.value().substr(1)),i(this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var e,t,n=o.find("colorpicker")[0];return e=this.name(),t=this.value(),"hex"==e?(t="#"+t,r(t),void n.value(t)):(t={r:o.find("#r").value(),g:o.find("#g").value(),b:o.find("#b").value()},n.value(t),void r(t))}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){t("#"+this.toJSON().hex)}});r(n)}e.settings.color_picker_callback||(e.settings.color_picker_callback=t)});PK ͻ!]eH��� � colorpicker.phpnu &1i� <?php /** * @package JCE * @subpackage Editor * * @copyright Copyright (c) 2009-2024 Ryan Demmer. All rights reserved * @license GNU General Public License version 2 or later; see LICENSE.txt */ \defined('_JEXEC') or die; require_once WF_EDITOR_LIBRARIES . '/classes/plugin.php'; class WFColorpickerPlugin extends WFEditorPlugin { public function __construct() { parent::__construct(array('colorpicker' => true)); } public function display() { parent::display(); $document = WFDocument::getInstance(); $document->addScript(array('colorpicker'), 'plugins'); $document->addStyleSheet(array('colorpicker'), 'plugins'); } } PK ͻ!]�#o, , index.htmlnu &1i� <html><body bgcolor="#FFFFFF"></body></html>PK ͻ!]�]&é � config.phpnu &1i� <?php /** * @package JCE * @subpackage Editor * * @copyright Copyright (c) 2009-2024 Ryan Demmer. All rights reserved * @license GNU General Public License version 2 or later; see LICENSE.txt */ \defined('_JEXEC') or die; class WFColorpickerPluginConfig { public static function getConfig(&$settings) { $wf = WFApplication::getInstance(); $colours = $wf->getParam('colorpicker.custom_colors', ''); if (empty($colours)) { $colours = $wf->getParam('editor.custom_colors', ''); } $colours = array_map('trim', explode(',', $colours)); $settings['colorpicker_custom_colors'] = $colours; } } PK ͻ!]�#o, , tmpl/index.htmlnu &1i� <html><body bgcolor="#FFFFFF"></body></html>PK ͻ!]�t).W W tmpl/default.phpnu &1i� <?php /** * @copyright Copyright (c) 2009-2022 Ryan Demmer. All rights reserved * @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * JCE is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses */ \defined('_JEXEC') or die; use Joomla\CMS\Language\Text; ?> <div id="colorpicker"> <div id="colorpicker_tabs"> <ul class="uk-tab" role="tablist"> <li role="presentation" aria-selected="true" class="uk-active"><button type="button" class="uk-button uk-button-link" aria-controls="colorpicker_picker" tabindex="-1"><?php echo Text::_('WF_COLORPICKER_PICKER'); ?></button></li> <li role="presentation" aria-selected="false" ><button type="button" class="uk-button uk-button-link" aria-controls="colorpicker_web" tabindex="-1"><?php echo Text::_('WF_COLORPICKER_PALETTE'); ?></button></li> <li role="presentation" aria-selected="false" ><button type="button" class="uk-button uk-button-link" aria-controls="colorpicker_named" tabindex="-1"><?php echo Text::_('WF_COLORPICKER_NAMED'); ?></button></li> <li role="presentation" aria-selected="false" ><button type="button" class="uk-button uk-button-link" aria-controls="colorpicker_template" tabindex="-1"><?php echo Text::_('WF_COLORPICKER_TEMPLATE'); ?></button></li> </ul> <div id="tab-content" class="uk-switcher"> <div id="colorpicker_picker" title="<?php echo Text::_('WF_COLORPICKER_PICKER'); ?>" data-type="picker" class="uk-active" role="tabpanel" aria-hidden="false"><!-- Will be filled with color wheel --></div> <div id="colorpicker_web" title="<?php echo Text::_('WF_COLORPICKER_PALETTE'); ?>" data-type="web" role="tabpanel" aria-hidden="true"><!-- Gets filled with web safe colors--></div> <div id="colorpicker_named" title="<?php echo Text::_('WF_COLORPICKER_NAMED'); ?>" data-type="named" role="tabpanel" aria-hidden="true"><!-- Gets filled with named colors--></div> <div id="colorpicker_template" title="<?php echo Text::_('WF_COLORPICKER_TEMPLATE'); ?>" data-type="template" role="tabpanel" aria-hidden="true"><!-- Gets filled with template colors--></div> </div> </div> <input type="hidden" id="tmp_color" /> </div> <div class="mceActionPanel uk-modal-footer"> <div id="colorpicker_preview"> <div id="colorpicker_preview_text" class="uk-form-icon uk-form-icon-both"> <i class="uk-icon-hashtag"></i> <input type="text" id="colorpicker_color" size="8" maxlength="8" value="000000" aria-required="true" /> <span class="uk-icon-none" id="colorpicker_preview_color" style="background-color: rgb(0, 0, 0);"></span> </div> </div> <button type="button" class="uk-button uk-button-primary" id="colorpicker_insert" onclick="ColorPicker.insert();"><i class="uk-icon-check"></i><span class="uk-button-text"><?php echo Text::_('WF_LABEL_APPLY'); ?></span></button> </div>PK ʙ!]ۓ��� � plugin.min.jsnu &1i� PK ͻ!]eH��� � colorpicker.phpnu &1i� PK ͻ!]�#o, , index.htmlnu &1i� PK ͻ!]�]&é � k config.phpnu &1i� PK ͻ!]�#o, , N tmpl/index.htmlnu &1i� PK ͻ!]�t).W W � tmpl/default.phpnu &1i� PK � P
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка