first commit
This commit is contained in:
26
components/com_jce/editor/tiny_mce/plugins/charmap/charmap.php
vendored
Normal file
26
components/com_jce/editor/tiny_mce/plugins/charmap/charmap.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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('WF_EDITOR') or die('RESTRICTED');
|
||||
|
||||
require_once WF_EDITOR_LIBRARIES . '/classes/plugin.php';
|
||||
|
||||
class WFCharMapPlugin extends WFEditorPlugin
|
||||
{
|
||||
public function display()
|
||||
{
|
||||
parent::display();
|
||||
|
||||
$document = WFDocument::getInstance();
|
||||
|
||||
$document->addScript(array('charmap'), 'plugins');
|
||||
$document->addStyleSheet(array('charmap'), 'plugins');
|
||||
}
|
||||
}
|
||||
27
components/com_jce/editor/tiny_mce/plugins/charmap/charmap.xml
vendored
Normal file
27
components/com_jce/editor/tiny_mce/plugins/charmap/charmap.xml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_CHARMAP_TITLE</name>
|
||||
<version>2.9.32</version>
|
||||
<creationDate>01-11-2022</creationDate>
|
||||
<author>Moxiecode / Ryan Demmer</author>
|
||||
<authorEmail>info@joomlacontenteditor.net</authorEmail>
|
||||
<authorUrl>https://www.joomlacontenteditor.net/</authorUrl>
|
||||
<copyright>Ryan Demmer</copyright>
|
||||
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
|
||||
<description>WF_CHARMAP_DESC</description>
|
||||
<icon>charmap</icon>
|
||||
<files></files>
|
||||
<fields name="charmap">
|
||||
<fieldset name="config">
|
||||
|
||||
<field name="charmap_append" type="keyvalue" default="" label="WF_CHARMAP_APPEND" description="WF_CHARMAP_APPEND_DESC">
|
||||
<field type="text" name="name" label="WF_CHARMAP_APPEND_CODE" />
|
||||
<field type="text" name="value" label="WF_CHARMAP_APPEND_TEXT" />
|
||||
</field>
|
||||
|
||||
</fieldset>
|
||||
</fields>
|
||||
<languages></languages>
|
||||
<help></help>
|
||||
</extension>
|
||||
|
||||
37
components/com_jce/editor/tiny_mce/plugins/charmap/config.php
vendored
Normal file
37
components/com_jce/editor/tiny_mce/plugins/charmap/config.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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
|
||||
*/
|
||||
class WFCharmapPluginConfig
|
||||
{
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
$wf = WFApplication::getInstance();
|
||||
|
||||
$append = $wf->getParam('charmap.charmap_append', array());
|
||||
|
||||
if (!empty($append)) {
|
||||
$values = array();
|
||||
|
||||
foreach($append as $item) {
|
||||
$item = (object) $item;
|
||||
|
||||
// invalid values
|
||||
if (empty($item->name) || empty($item->value)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$item->name = html_entity_decode($item->name);
|
||||
$values[$item->name] = $item->value;
|
||||
}
|
||||
|
||||
$settings['charmap_append'] = $values;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
components/com_jce/editor/tiny_mce/plugins/charmap/editor_plugin.js
vendored
Normal file
2
components/com_jce/editor/tiny_mce/plugins/charmap/editor_plugin.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
components/com_jce/editor/tiny_mce/plugins/charmap/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/charmap/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
Reference in New Issue
Block a user