first commit

This commit is contained in:
2026-02-08 21:16:11 +01:00
commit e17b7026fd
8881 changed files with 1160453 additions and 0 deletions

View File

@@ -0,0 +1,101 @@
<?xml version="1.0" ?>
<extension version="3.4" type="plugin" group="jce" method="upgrade">
<name>WF_CLIPBOARD_TITLE</name>
<version>2.9.32</version>
<creationDate>01-11-2022</creationDate>
<author>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_CLIPBOARD_DESC</description>
<icon>cut,copy,paste,pastetext</icon>
<fields name="clipboard">
<fieldset name="config">
<!--field name="paste_use_dialog" type="yesno" default="0" label="WF_PASTE_PARAM_DIALOG" description="WF_PASTE_PARAM_DIALOG_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="paste_dialog_width" type="number" class="input-small" size="5" default="450" label="WF_PASTE_PARAM_WIDTH" description="WF_PASTE_PARAM_WIDTH_DESC" />
<field name="paste_dialog_height" type="number" class="input-small" size="5" default="400" label="WF_PASTE_PARAM_HEIGHT" description="WF_PASTE_PARAM_HEIGHT_DESC" /-->
<field name="paste_force_cleanup" type="list" default="0" label="WF_PASTE_FORCE_CLEANUP" description="WF_PASTE_FORCE_CLEANUP_DESC">
<option value="0">WF_PASTE_FORCE_CLEANUP_DETECT</option>
<option value="1">WF_PASTE_FORCE_CLEANUP_ALWAYS</option>
</field>
<field name="paste_strip_class_attributes" type="list" default="2" label="WF_PASTE_PARAM_CLASSES" description="WF_PASTE_PARAM_CLASSES_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
<option value="2">WF_OPTION_PASTE_CLASSES_WORD_ONLY</option>
</field>
<field name="paste_remove_spans" type="yesno" default="0" label="WF_PASTE_PARAM_SPANS" description="WF_PASTE_PARAM_SPANS_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="paste_remove_styles" type="yesno" default="1" label="WF_PASTE_PARAM_STYLES" description="WF_PASTE_PARAM_STYLES_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="paste_retain_style_properties" placeholder="eg: font-weight,text-decoration" class="input-xlarge" size="50" type="text" default="" label="WF_PASTE_PARAM_RETAIN_STYLES" description="WF_PASTE_PARAM_RETAIN_STYLES_DESC" showon="paste_remove_styles:1" />
<field name="paste_remove_style_properties" placeholder="eg: font-size,font-family,color" class="input-xlarge" size="50" type="text" default="" label="WF_PASTE_PARAM_REMOVE_STYLES" description="WF_PASTE_PARAM_REMOVE_STYLES_DESC" showon="paste_remove_styles:0" />
<field name="paste_remove_tags" type="text" size="50" class="input-xlarge" placeholder="eg: img,object,iframe" default="" label="WF_PASTE_PARAM_REMOVE_TAGS" description="WF_PASTE_PARAM_REMOVE_TAGS_DESC" />
<field name="paste_keep_tags" type="text" size="50" class="input-xlarge" placeholder="eg: img,p,em,strong" default="" label="WF_PASTE_PARAM_KEEP_TAGS" description="WF_PASTE_PARAM_KEEP_TAGS_DESC" />
<field name="paste_remove_attributes" type="text" size="50" class="input-xlarge" placeholder="eg: lang,align" default="" label="WF_PASTE_PARAM_ATTRIBUTES" description="WF_PASTE_PARAM_ATTRIBUTES_DESC" />
<field name="paste_allow_event_attributes" type="yesno" default="0" label="WF_PASTE_PARAM_ALLOW_EVENT_ATTRIBUTES" description="WF_PASTE_PARAM_ALLOW_EVENT_ATTRIBUTES_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="paste_remove_empty_paragraphs" type="yesno" default="1" label="WF_PASTE_PARAM_REMOVE_PARAGRAPHS" description="WF_PASTE_PARAM_REMOVE_PARAGRAPHS_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="paste_remove_styles_if_webkit" type="yesno" default="0" label="WF_PASTE_PARAM_REMOVE_STYLES_WEBKIT" description="WF_PASTE_PARAM_REMOVE_STYLES_WEBKIT_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="paste_process_footnotes" type="list" default="convert" label="WF_PASTE_PARAM_PROCESS_FOOTNOTES" description="WF_PASTE_PARAM_PROCESS_FOOTNOTES_DESC">
<option value="convert">WF_PASTE_PARAM_PROCESS_FOOTNOTES_CONVERT</option>
<option value="unlink">WF_PASTE_PARAM_PROCESS_FOOTNOTES_UNLINK</option>
<option value="remove">WF_PASTE_PARAM_PROCESS_FOOTNOTES_REMOVE</option>
</field>
<field name="paste_upload_images" type="yesno" default="0" label="WF_PASTE_PARAM_UPLOAD_IMAGES" description="WF_PASTE_PARAM_UPLOAD_IMAGES_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="paste_filter" type="text" size="50" class="input-xlarge" default="" label="WF_PASTE_PARAM_FILTER" description="WF_PASTE_PARAM_FILTER_DESC" />
<field name="paste_html" type="yesno" default="1" label="WF_PASTE_PARAM_PASTE_HTML" description="WF_PASTE_PARAM_PASTE_HTML_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="paste_text" type="yesno" default="1" label="WF_PASTE_PARAM_PASTE_TEXT" description="WF_PASTE_PARAM_PASTE_TEXT_DESC">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field type="heading" label="WF_PROFILES_PLUGINS_BUTTONS" />
<field name="buttons" type="buttons" multiple="multiple" default="cut,copy,paste,pastetext" label="WF_PARAM_BUTTONS" description="WF_PARAM_BUTTONS_DESC">
<option value="cut">WF_OPTION_CUT</option>
<option value="copy">WF_OPTION_COPY</option>
<option value="paste">WF_OPTION_PASTE</option>
<option value="pastetext">WF_OPTION_PASTETEXT</option>
</field>
</fieldset>
</fields>
<help>
<topic key="clipboard.about" title="WF_CLIPBOARD_HELP_ABOUT" />
</help>
<languages></languages>
</extension>

View File

@@ -0,0 +1,66 @@
<?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 WFClipboardPluginConfig
{
public static function getConfig(&$settings)
{
$wf = WFApplication::getInstance();
/*$settings['clipboard_paste_dialog_width'] = $wf->getParam('clipboard.paste_dialog_width', 450, 450);
$settings['clipboard_paste_dialog_height'] = $wf->getParam('clipboard.paste_dialog_height', 400, 400);
$settings['clipboard_paste_use_dialog'] = $wf->getParam('clipboard.paste_use_dialog', 0, 0, 'boolean');*/
$settings['clipboard_paste_force_cleanup'] = $wf->getParam('clipboard.paste_force_cleanup', 0, 0, 'boolean');
$settings['clipboard_paste_strip_class_attributes'] = $wf->getParam('clipboard.paste_strip_class_attributes', 2, 2);
$settings['clipboard_paste_remove_styles'] = $wf->getParam('clipboard.paste_remove_styles', 1, 1, 'boolean');
$settings['clipboard_paste_retain_style_properties'] = $wf->getParam('clipboard.paste_retain_style_properties', '', '');
$settings['clipboard_paste_remove_style_properties'] = $wf->getParam('clipboard.paste_remove_style_properties', '', '');
$settings['clipboard_paste_remove_attributes'] = $wf->getParam('clipboard.paste_remove_attributes', '', '');
$settings['clipboard_paste_remove_spans'] = $wf->getParam('clipboard.paste_remove_spans', 0, 0, 'boolean');
$settings['clipboard_paste_remove_styles_if_webkit'] = $wf->getParam('clipboard.paste_remove_styles_if_webkit', 0, 0, 'boolean');
$settings['clipboard_paste_remove_empty_paragraphs'] = $wf->getParam('clipboard.paste_remove_empty_paragraphs', 1, 1, 'boolean');
$settings['clipboard_paste_text'] = $wf->getParam('clipboard.paste_text', 1, 1, 'boolean');
$settings['clipboard_paste_html'] = $wf->getParam('clipboard.paste_html', 1, 1, 'boolean');
$settings['clipboard_paste_allow_event_attributes'] = $wf->getParam('clipboard.paste_allow_event_attributes', 0, 0, 'boolean');
$settings['clipboard_paste_process_footnotes'] = $wf->getParam('clipboard.paste_process_footnotes', 'convert', 'convert');
$settings['clipboard_paste_upload_data_images'] = $wf->getParam('clipboard.paste_upload_images', 1, 1);
$settings['clipboard_paste_remove_tags'] = $wf->getParam('clipboard.paste_remove_tags', '', '');
$settings['clipboard_paste_keep_tags'] = $wf->getParam('clipboard.paste_keep_tags', '', '');
$settings['clipboard_paste_filter'] = $wf->getParam('clipboard.paste_filter', '', '');
$settings['clipboard_paste_data_images'] = $wf->getParam('clipboard.paste_data_images', 0, 0, 'boolean');
// clean to remove duplicate items and empty values
foreach(['clipboard_paste_retain_style_properties', 'clipboard_paste_remove_style_properties', 'clipboard_paste_remove_attributes', 'clipboard_paste_remove_tags', 'clipboard_paste_keep_tags'] as $key) {
$value = $settings[$key];
if ($value) {
$settings[$key] = self::cleanStringList($value);
}
}
}
private static function cleanStringList($value)
{
$value = trim($value);
$values = explode(',', $value);
// remove whitespace
$values = array_map('trim', $values);
// remove duplicates and emtpy values
$values = array_unique(array_filter($values));
return implode(',', $values);
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>