first commit
This commit is contained in:
45
components/com_jce/editor/tiny_mce/plugins/table/config.php
vendored
Normal file
45
components/com_jce/editor/tiny_mce/plugins/table/config.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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 WFTablePluginConfig
|
||||
{
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
$wf = WFApplication::getInstance();
|
||||
|
||||
$width = $wf->getParam('table.width');
|
||||
$height = $wf->getParam('table.height');
|
||||
|
||||
if ($width && preg_match('#^[0-9\.]$#', $width)) {
|
||||
$width .= 'px';
|
||||
}
|
||||
|
||||
if ($height && preg_match('#^[0-9\.]$#', $height)) {
|
||||
$height .= 'px';
|
||||
}
|
||||
|
||||
$settings['table_default_width'] = $width;
|
||||
$settings['table_default_height'] = $height;
|
||||
$settings['table_default_border'] = $wf->getParam('table.border', 0, 0);
|
||||
$settings['table_default_align'] = $wf->getParam('table.align', '', '');
|
||||
$settings['table_default_cellpadding'] = $wf->getParam('table.cellpadding', 0, 0);
|
||||
$settings['table_default_cellspacing'] = $wf->getParam('table.cellspacing', 0, 0);
|
||||
$settings['table_default_rows'] = $wf->getParam('table.rows', 2, 2);
|
||||
$settings['table_default_cols'] = $wf->getParam('table.cols', 2, 2);
|
||||
$settings['table_cell_limit'] = $wf->getParam('table.cell_limit', 0, 0);
|
||||
$settings['table_row_limit'] = $wf->getParam('table.row_limit', 0, 0);
|
||||
$settings['table_col_limit'] = $wf->getParam('table.col_limit', 0, 0);
|
||||
$settings['table_pad_empty_cells'] = $wf->getParam('table.pad_empty_cells', 1, 1);
|
||||
|
||||
$settings['table_classes'] = $wf->getParam('table.classes', '', '');
|
||||
|
||||
$settings['table_buttons'] = $wf->getParam('table.show_buttons', 1, 1);
|
||||
}
|
||||
}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/table/css/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/table/css/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/table/css/table.css
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/table/css/table.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
#merge_tab .uk-width-3-10{width:30%!important}#merge_tab .uk-width-7-10{width:70%!important}#numcols,#numrows{width:50px}
|
||||
3
components/com_jce/editor/tiny_mce/plugins/table/editor_plugin.js
vendored
Normal file
3
components/com_jce/editor/tiny_mce/plugins/table/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/table/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/table/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/table/js/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/table/js/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/table/js/table.js
vendored
Normal file
2
components/com_jce/editor/tiny_mce/plugins/table/js/table.js
vendored
Normal file
File diff suppressed because one or more lines are too long
68
components/com_jce/editor/tiny_mce/plugins/table/table.php
vendored
Normal file
68
components/com_jce/editor/tiny_mce/plugins/table/table.php
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
<?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('JPATH_PLATFORM') or die;
|
||||
|
||||
require_once WF_EDITOR_LIBRARIES . '/classes/plugin.php';
|
||||
|
||||
class WFTablePlugin extends WFEditorPlugin
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct(array('colorpicker' => true));
|
||||
}
|
||||
|
||||
public function getLayout()
|
||||
{
|
||||
return JFactory::getApplication()->input->getCmd('slot', 'table');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the plugin.
|
||||
*/
|
||||
public function display()
|
||||
{
|
||||
parent::display();
|
||||
|
||||
$layout = $this->getLayout();
|
||||
$document = WFDocument::getInstance();
|
||||
|
||||
$document->addScript(array('table'), 'plugins');
|
||||
$document->addStyleSheet(array('table'), 'plugins');
|
||||
|
||||
// update title
|
||||
if ($layout !== 'table') {
|
||||
$document->setTitle(JText::_('WF_TABLE_' . strtoupper($layout) . '_TITLE'));
|
||||
}
|
||||
|
||||
$settings = $this->getSettings();
|
||||
|
||||
$document->addScriptDeclaration('TableDialog.settings=' . json_encode($settings) . ';');
|
||||
|
||||
$tabs = WFTabs::getInstance(array('base_path' => WF_EDITOR_PLUGIN));
|
||||
|
||||
if ($layout == 'merge') {
|
||||
// Add tabs
|
||||
$tabs->addTab('merge');
|
||||
} else {
|
||||
$tabs->addTab('general', 1, array('plugin' => $this));
|
||||
$tabs->addTab('advanced', 1, array('plugin' => $this));
|
||||
}
|
||||
}
|
||||
|
||||
public function getSettings($settings = array())
|
||||
{
|
||||
$profile = $this->getProfile();
|
||||
|
||||
$settings['file_browser'] = $this->getParam('file_browser', 1) && in_array('browser', explode(',', $profile->plugins));
|
||||
|
||||
return parent::getSettings($settings);
|
||||
}
|
||||
}
|
||||
66
components/com_jce/editor/tiny_mce/plugins/table/table.xml
vendored
Normal file
66
components/com_jce/editor/tiny_mce/plugins/table/table.xml
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_TABLE_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>Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved</copyright>
|
||||
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
|
||||
<description>WF_TABLE_DESC</description>
|
||||
<icon>table_insert,delete_table,row_props,cell_props,row_before,row_after,delete_row,col_before,col_after,delete_col,split_cells,merge_cells</icon>
|
||||
<fields name="table">
|
||||
<fieldset name="config">
|
||||
|
||||
<fieldset name="defaults">
|
||||
<field name="width" type="text" size="6" default="" label="WF_TABLES_PARAM_WIDTH" description="WF_TABLES_PARAM_WIDTH_DESC" />
|
||||
<field name="height" type="text" size="6" default="" label="WF_TABLES_PARAM_HEIGHT" description="WF_TABLES_PARAM_HEIGHT_DESC" />
|
||||
<field name="border" type="text" size="5" default="0" label="WF_TABLES_PARAM_BORDER" description="WF_TABLES_PARAM_BORDER_DESC" />
|
||||
<field name="cols" type="number" size="5" class="input-small" step="1" default="2" label="WF_TABLES_PARAM_COLS" description="WF_TABLES_PARAM_COLS_DESC" />
|
||||
<field name="rows" type="number" size="5" class="input-small" step="1" default="2" label="WF_TABLES_PARAM_ROWS" description="WF_TABLES_PARAM_ROWS_DESC" />
|
||||
<field name="cellpadding" type="number" class="input-small" step="1" size="5" default="" label="WF_TABLES_PARAM_CELLPADDING" description="WF_TABLES_PARAM_CELLPADDING_DESC" />
|
||||
<field name="cellspacing" type="number" class="input-small" step="1" size="5" default="" label="WF_TABLES_PARAM_CELLSPACING" description="WF_TABLES_PARAM_CELLSPACING_DESC" />
|
||||
<field name="align" type="list" default="" label="WF_TABLE_ALIGN" description="WF_TABLE_ALIGN_DESC">
|
||||
<option value="">WF_OPTION_NOT_SET</option>
|
||||
<option value="left">WF_TABLE_ALIGN_LEFT</option>
|
||||
<option value="center">WF_TABLE_ALIGN_MIDDLE</option>
|
||||
<option value="right">WF_TABLE_ALIGN_RIGHT</option>
|
||||
</field>
|
||||
<field name="classes" type="text" size="50" default="" label="WF_LABEL_CLASSES" description="WF_LABEL_CLASSES_DESC" />
|
||||
<field name="pad_empty_cells" type="list" default="1" label="WF_TABLE_PAD_EMPTY_CELLS" description="WF_TABLE_PAD_EMPTY_CELLS_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
|
||||
<field name="show_buttons" type="list" default="1" label="WF_TABLE_SHOW_BUTTONS" description="WF_TABLE_SHOW_BUTTONS_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="table_insert,delete_table,row_props,cell_props,row_before,row_after,delete_row,col_before,col_after,delete_col,split_cells,merge_cells" label="WF_PARAM_BUTTONS" description="WF_PARAM_BUTTONS_DESC">
|
||||
<option value="table_insert">WF_TABLE_INSERT</option>
|
||||
<option value="delete_table">WF_TABLE_DELETE</option>
|
||||
<option value="row_props">WF_TABLE_ROW_PROPS</option>
|
||||
<option value="cell_props">WF_TABLE_CELL_PROPS</option>
|
||||
<option value="row_before">WF_TABLE_ROW_BEFORE</option>
|
||||
<option value="row_after">WF_TABLE_ROW_AFTER</option>
|
||||
<option value="delete_row">WF_TABLE_ROW_DELETE</option>
|
||||
<option value="col_before">WF_TABLE_COL_BEFORE</option>
|
||||
<option value="col_after">WF_TABLE_COL_AFTER</option>
|
||||
<option value="delete_col">WF_TABLE_COL_DELETE</option>
|
||||
<option value="split_cells">WF_TABLE_SPLIT</option>
|
||||
<option value="merge_cells">WF_TABLE_MERGE</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
<help>
|
||||
<topic key="tables.edit" title="WF_TABLES_HELP_EDIT" />
|
||||
<topic key="tables.delete" title="WF_TABLES_HELP_DELETE" />
|
||||
<topic key="tables.rows" title="WF_TABLES_HELP_ROWS" />
|
||||
</help>
|
||||
<languages></languages>
|
||||
</extension>
|
||||
161
components/com_jce/editor/tiny_mce/plugins/table/tmpl/advanced.php
vendored
Normal file
161
components/com_jce/editor/tiny_mce/plugins/table/tmpl/advanced.php
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
<?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('JPATH_PLATFORM') or die;
|
||||
|
||||
?>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label for="classlist" class="uk-form-label uk-width-1-5 hastip" title="<?php echo JText::_('WF_LABEL_CLASSES_DESC'); ?>"><?php echo JText::_('WF_LABEL_CLASSES'); ?></label>
|
||||
<div class="uk-form-controls uk-width-4-5">
|
||||
<input type="text" id="classes" class="uk-datalist" multiple="multiple" list="classes_datalist" />
|
||||
<datalist id="classes_datalist"></datalist>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-5" for="id">
|
||||
<?php echo JText::_('WF_TABLE_ID'); ?></label>
|
||||
<div class="uk-form-controls uk-width-4-5">
|
||||
<input id="id" type="text" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-5" for="summary">
|
||||
<?php echo JText::_('WF_TABLE_SUMMARY'); ?></label>
|
||||
<div class="uk-form-controls uk-width-4-5">
|
||||
<input id="summary" type="text" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-5" for="style">
|
||||
<?php echo JText::_('WF_TABLE_STYLE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-4-5">
|
||||
<input type="text" id="style" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-5" id="langlabel" for="lang">
|
||||
<?php echo JText::_('WF_TABLE_LANGCODE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-4-5">
|
||||
<input id="lang" type="text" value="" class="uk-form-width-small" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-5" for="backgroundimage">
|
||||
<?php echo JText::_('WF_TABLE_BGIMAGE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-4-5">
|
||||
<input id="backgroundimage" type="text" value="" class="browser" />
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($this->plugin->getLayout() == 'table'):
|
||||
?>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-5" for="tframe">
|
||||
<?php echo JText::_('WF_TABLE_FRAME'); ?></label>
|
||||
<div class="uk-form-controls uk-width-4-5">
|
||||
<select id="frame">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="void"><?php echo JText::_('WF_TABLE_RULES_VOID'); ?></option>
|
||||
<option value="above"><?php echo JText::_('WF_TABLE_RULES_ABOVE'); ?></option>
|
||||
<option value="below"><?php echo JText::_('WF_TABLE_RULES_BELOW'); ?></option>
|
||||
<option value="hsides"><?php echo JText::_('WF_TABLE_RULES_HSIDES'); ?></option>
|
||||
<option value="lhs"><?php echo JText::_('WF_TABLE_RULES_LHS'); ?></option>
|
||||
<option value="rhs"><?php echo JText::_('WF_TABLE_RULES_RHS'); ?></option>
|
||||
<option value="vsides"><?php echo JText::_('WF_TABLE_RULES_VSIDES'); ?></option>
|
||||
<option value="box"><?php echo JText::_('WF_TABLE_RULES_BOX'); ?></option>
|
||||
<option value="border"><?php echo JText::_('WF_TABLE_RULES_BORDER'); ?></option>
|
||||
</select></div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-5" for="rules">
|
||||
<?php echo JText::_('WF_TABLE_RULES'); ?></label>
|
||||
<div class="uk-form-controls uk-width-4-5">
|
||||
<select id="rules">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="none"><?php echo JText::_('WF_TABLE_FRAME_NONE'); ?></option>
|
||||
<option value="groups"><?php echo JText::_('WF_TABLE_FRAME_GROUPS'); ?></option>
|
||||
<option value="rows"><?php echo JText::_('WF_TABLE_FRAME_ROWS'); ?></option>
|
||||
<option value="cols"><?php echo JText::_('WF_TABLE_FRAME_COLS'); ?></option>
|
||||
<option value="all"><?php echo JText::_('WF_TABLE_FRAME_ALL'); ?></option>
|
||||
</select></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-5" for="dir">
|
||||
<?php echo JText::_('WF_TABLE_LANGDIR'); ?></label>
|
||||
<div class="uk-form-controls uk-width-4-5">
|
||||
<select id="dir">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="ltr"><?php echo JText::_('WF_TABLE_LTR'); ?></option>
|
||||
<option value="rtl"><?php echo JText::_('WF_TABLE_RTL'); ?></option>
|
||||
</select></div>
|
||||
</div>
|
||||
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label for="border" class="hastip uk-form-label uk-width-1-5" title="<?php echo JText::_('WF_LABEL_BORDER_DESC'); ?>">
|
||||
<?php echo JText::_('WF_LABEL_BORDER'); ?>
|
||||
</label>
|
||||
|
||||
<div class="uk-form-controls uk-grid uk-grid-small uk-width-4-5">
|
||||
<div class="uk-form-controls uk-width-0-3 uk-margin-small-top">
|
||||
<input type="checkbox" id="border" />
|
||||
</div>
|
||||
|
||||
<label for="border_width" class="hastip uk-form-label uk-width-1-10 uk-margin-small-left" title="<?php echo JText::_('WF_LABEL_BORDER_WIDTH_DESC'); ?>"><?php echo JText::_('WF_LABEL_WIDTH'); ?></label>
|
||||
<div class="uk-form-controls uk-width-2-10">
|
||||
<input type="text" pattern="[0-9]+" id="border_width" class="uk-datalist" list="border_width_datalist" />
|
||||
<datalist id="border_width_datalist">
|
||||
<option value="inherit">--</option>
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
<option value="thin"><?php echo JText::_('WF_OPTION_BORDER_THIN'); ?></option>
|
||||
<option value="medium"><?php echo JText::_('WF_OPTION_BORDER_MEDIUM'); ?></option>
|
||||
<option value="thick"><?php echo JText::_('WF_OPTION_BORDER_THICK'); ?></option>
|
||||
</datalist>
|
||||
</div>
|
||||
|
||||
<label for="border_style" class="hastip uk-form-label uk-width-1-10 uk-margin-small-left" title="<?php echo JText::_('WF_LABEL_BORDER_STYLE_DESC'); ?>"><?php echo JText::_('WF_LABEL_STYLE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-2-10">
|
||||
<select id="border_style">
|
||||
<option value="inherit">--</option>
|
||||
<option value="none"><?php echo JText::_('WF_OPTION_BORDER_NONE'); ?></option>
|
||||
<option value="solid"><?php echo JText::_('WF_OPTION_BORDER_SOLID'); ?></option>
|
||||
<option value="dashed"><?php echo JText::_('WF_OPTION_BORDER_DASHED'); ?></option>
|
||||
<option value="dotted"><?php echo JText::_('WF_OPTION_BORDER_DOTTED'); ?></option>
|
||||
<option value="double"><?php echo JText::_('WF_OPTION_BORDER_DOUBLE'); ?></option>
|
||||
<option value="groove"><?php echo JText::_('WF_OPTION_BORDER_GROOVE'); ?></option>
|
||||
<option value="inset"><?php echo JText::_('WF_OPTION_BORDER_INSET'); ?></option>
|
||||
<option value="outset"><?php echo JText::_('WF_OPTION_BORDER_OUTSET'); ?></option>
|
||||
<option value="ridge"><?php echo JText::_('WF_OPTION_BORDER_RIDGE'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<label for="border_color" class="hastip uk-form-label uk-width-1-10 uk-margin-small-left" title="<?php echo JText::_('WF_LABEL_BORDER_COLOR_DESC'); ?>"><?php echo JText::_('WF_LABEL_COLOR'); ?></label>
|
||||
<div class="uk-form-controls uk-width-2-10">
|
||||
<input id="border_color" class="color" type="text" value="#000000" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-5" for="bgcolor">
|
||||
<?php echo JText::_('WF_TABLE_BGCOLOR'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-5">
|
||||
<input id="bgcolor" type="text" value="" size="9" class="color uk-form-width-small" />
|
||||
</div>
|
||||
</div>
|
||||
39
components/com_jce/editor/tiny_mce/plugins/table/tmpl/default.php
vendored
Normal file
39
components/com_jce/editor/tiny_mce/plugins/table/tmpl/default.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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('JPATH_PLATFORM') or die;
|
||||
$tabs = WFTabs::getInstance();
|
||||
?>
|
||||
<form onsubmit="return false;" class="uk-form uk-form-horizontal" data-layout="<?php echo $this->plugin->getLayout(); ?>">
|
||||
<?php echo $tabs->render(); ?>
|
||||
<div class="mceActionPanel">
|
||||
<?php if ($this->plugin->getLayout() == 'cell') : ?>
|
||||
<div class="uk-form-row uk-float-left">
|
||||
<select id="action" name="action">
|
||||
<option value="cell"><?php echo JText::_('WF_TABLE_CELL_CELL'); ?></option>
|
||||
<option value="row"><?php echo JText::_('WF_TABLE_CELL_ROW'); ?></option>
|
||||
<option value="all"><?php echo JText::_('WF_TABLE_CELL_ALL'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<?php endif;
|
||||
if ($this->plugin->getLayout() == 'row') : ?>
|
||||
<div class="uk-form-row uk-float-left">
|
||||
<select id="action" name="action">
|
||||
<option value="row"><?php echo JText::_('WF_TABLE_ROW_ROW'); ?></option>
|
||||
<option value="odd"><?php echo JText::_('WF_TABLE_ROW_ODD'); ?></option>
|
||||
<option value="even"><?php echo JText::_('WF_TABLE_ROW_EVEN'); ?></option>
|
||||
<option value="all"><?php echo JText::_('WF_TABLE_ROW_ALL'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<button type="button" id="cancel"><?php echo JText::_('WF_LABEL_CANCEL'); ?></button>
|
||||
<button type="submit" id="insert" onclick="TableDialog.insert();"><?php echo JText::_('WF_LABEL_INSERT'); ?></button>
|
||||
</div>
|
||||
</form>
|
||||
14
components/com_jce/editor/tiny_mce/plugins/table/tmpl/general.php
vendored
Normal file
14
components/com_jce/editor/tiny_mce/plugins/table/tmpl/general.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?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('JPATH_PLATFORM') or die;
|
||||
|
||||
?>
|
||||
<?php echo $this->loadTemplate($this->plugin->getLayout()); ?>
|
||||
72
components/com_jce/editor/tiny_mce/plugins/table/tmpl/general_cell.php
vendored
Normal file
72
components/com_jce/editor/tiny_mce/plugins/table/tmpl/general_cell.php
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
<?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('JPATH_PLATFORM') or die;
|
||||
?>
|
||||
<div class="uk-form-row uk-grid">
|
||||
<label class="uk-form-label uk-width-2-10" for="align">
|
||||
<?php echo JText::_('WF_TABLE_ALIGN'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<select id="align">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="center"><?php echo JText::_('WF_TABLE_ALIGN_MIDDLE'); ?></option>
|
||||
<option value="left"><?php echo JText::_('WF_TABLE_ALIGN_LEFT'); ?></option>
|
||||
<option value="right"><?php echo JText::_('WF_TABLE_ALIGN_RIGHT'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<label class="uk-form-label uk-width-2-10" for="celltype">
|
||||
<?php echo JText::_('WF_TABLE_CELL_TYPE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<select id="celltype" >
|
||||
<option value="td"><?php echo JText::_('WF_TABLE_TD'); ?></option>
|
||||
<option value="th"><?php echo JText::_('WF_TABLE_TH'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-form-row uk-grid">
|
||||
<label class="uk-form-label uk-width-2-10" for="valign">
|
||||
<?php echo JText::_('WF_TABLE_VALIGN'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<select id="valign" >
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="top"><?php echo JText::_('WF_TABLE_ALIGN_TOP'); ?></option>
|
||||
<option value="middle"><?php echo JText::_('WF_TABLE_ALIGN_MIDDLE'); ?></option>
|
||||
<option value="bottom"><?php echo JText::_('WF_TABLE_ALIGN_BOTTOM'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<label class="uk-form-label uk-width-2-10" for="scope">
|
||||
<?php echo JText::_('WF_TABLE_SCOPE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<select id="scope" >
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="col"><?php echo JText::_('WF_TABEL_COL'); ?></option>
|
||||
<option value="row"><?php echo JText::_('WF_TABEL_ROW'); ?></option>
|
||||
<option value="rowgroup"><?php echo JText::_('WF_TABLE_ROWGROUP'); ?></option>
|
||||
<option value="colgroup"><?php echo JText::_('WF_TABLE_COLGROUP'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-form-row uk-grid">
|
||||
<label class="uk-form-label uk-width-2-10" for="width">
|
||||
<?php echo JText::_('WF_TABLE_WIDTH'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input id="width" type="text" value="" />
|
||||
</div>
|
||||
|
||||
<label class="uk-form-label uk-width-2-10" for="height">
|
||||
<?php echo JText::_('WF_TABLE_HEIGHT'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input id="height" type="text" value="" />
|
||||
</div>
|
||||
</div>
|
||||
51
components/com_jce/editor/tiny_mce/plugins/table/tmpl/general_row.php
vendored
Normal file
51
components/com_jce/editor/tiny_mce/plugins/table/tmpl/general_row.php
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
<?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('JPATH_PLATFORM') or die;
|
||||
?>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-3-10" for="rowtype">
|
||||
<?php echo JText::_('WF_TABLE_ROWTYPE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-7-10">
|
||||
<select id="rowtype">
|
||||
<option value="thead"><?php echo JText::_('WF_TABLE_THEAD'); ?></option>
|
||||
<option value="tbody"><?php echo JText::_('WF_TABLE_TBODY'); ?></option>
|
||||
<option value="tfoot"><?php echo JText::_('WF_TABLE_TFOOT'); ?></option>
|
||||
</select></div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-3-10" for="align">
|
||||
<?php echo JText::_('WF_TABLE_ALIGN'); ?></label>
|
||||
<div class="uk-form-controls uk-width-7-10">
|
||||
<select id="align">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="center"><?php echo JText::_('WF_TABLE_ALIGN_MIDDLE'); ?></option>
|
||||
<option value="left"><?php echo JText::_('WF_TABLE_ALIGN_LEFT'); ?></option>
|
||||
<option value="right"><?php echo JText::_('WF_TABLE_ALIGN_RIGHT'); ?></option>
|
||||
</select></div>
|
||||
</div>
|
||||
<!--div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-3-10" for="valign">
|
||||
<?php echo JText::_('WF_TABLE_VALIGN'); ?></label>
|
||||
<div class="uk-form-controls uk-width-7-10">
|
||||
<select id="valign">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="top"><?php echo JText::_('WF_TABLE_ALIGN_TOP'); ?></option>
|
||||
<option value="middle"><?php echo JText::_('WF_TABLE_ALIGN_MIDDLE'); ?></option>
|
||||
<option value="bottom"><?php echo JText::_('WF_TABLE_ALIGN_BOTTOM'); ?></option>
|
||||
</select></div>
|
||||
</div-->
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-3-10" for="height">
|
||||
<?php echo JText::_('WF_TABLE_HEIGHT'); ?></label>
|
||||
<div class="uk-form-controls uk-width-7-10">
|
||||
<input type="text" id="height" value="" />
|
||||
</div>
|
||||
</div>
|
||||
75
components/com_jce/editor/tiny_mce/plugins/table/tmpl/general_table.php
vendored
Normal file
75
components/com_jce/editor/tiny_mce/plugins/table/tmpl/general_table.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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('JPATH_PLATFORM') or die;
|
||||
?>
|
||||
<div class="uk-form-row uk-grid">
|
||||
<label class="uk-form-label uk-width-2-10" for="cols">
|
||||
<?php echo JText::_('WF_TABLE_COLS'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input id="cols" type="number" min="1" value="" required />
|
||||
</div>
|
||||
|
||||
<label class="uk-form-label uk-width-2-10" for="rows">
|
||||
<?php echo JText::_('WF_TABLE_ROWS'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input id="rows" type="number" value="" required />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-form-row uk-grid">
|
||||
<label class="uk-form-label uk-width-2-10" for="cellpadding">
|
||||
<?php echo JText::_('WF_TABLE_CELLPADDING'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input id="cellpadding" type="number" value="" />
|
||||
</div>
|
||||
|
||||
<label class="uk-form-label uk-width-2-10" for="cellspacing">
|
||||
<?php echo JText::_('WF_TABLE_CELLSPACING'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input id="cellspacing" type="number" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid">
|
||||
<label class="uk-form-label uk-width-2-10" for="align">
|
||||
<?php echo JText::_('WF_TABLE_ALIGN'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<select id="align">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="center"><?php echo JText::_('WF_TABLE_ALIGN_MIDDLE'); ?></option>
|
||||
<option value="left"><?php echo JText::_('WF_TABLE_ALIGN_LEFT'); ?></option>
|
||||
<option value="right"><?php echo JText::_('WF_TABLE_ALIGN_RIGHT'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<label class="uk-form-label uk-width-2-10" for="table_border">
|
||||
<?php echo JText::_('WF_TABLE_BORDER'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input id="table_border" type="number" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid">
|
||||
<label class="uk-form-label uk-width-2-10" for="width">
|
||||
<?php echo JText::_('WF_TABLE_WIDTH'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input type="text" id="width" value="" />
|
||||
</div>
|
||||
|
||||
<label class="uk-form-label uk-width-2-10" for="height">
|
||||
<?php echo JText::_('WF_TABLE_HEIGHT'); ?></label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input type="text" id="height" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row">
|
||||
<input id="caption" type="checkbox" />
|
||||
<label for="caption">
|
||||
<?php echo JText::_('WF_TABLE_CAPTION'); ?></label>
|
||||
</div>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/table/tmpl/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/table/tmpl/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
22
components/com_jce/editor/tiny_mce/plugins/table/tmpl/merge.php
vendored
Normal file
22
components/com_jce/editor/tiny_mce/plugins/table/tmpl/merge.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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('JPATH_PLATFORM') or die;
|
||||
?>
|
||||
<div class="uk-grid uk-grid-small uk-form-row">
|
||||
<label class="uk-form-label uk-width-7-10"><?php echo JText::_('WF_TABLE_COLS'); ?>:</label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input type="number" min="1" id="numcols" value=""/>
|
||||
</div>
|
||||
<label class="uk-form-label uk-width-7-10"><?php echo JText::_('WF_TABLE_ROWS'); ?>:</label>
|
||||
<div class="uk-form-controls uk-width-3-10">
|
||||
<input type="number" min="1" id="numrows" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user