first commit
This commit is contained in:
41
components/com_jce/editor/tiny_mce/plugins/link/config.php
vendored
Normal file
41
components/com_jce/editor/tiny_mce/plugins/link/config.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?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 WFLinkPluginConfig
|
||||
{
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
require_once __DIR__ . '/link.php';
|
||||
|
||||
$plugin = new WFLinkPlugin();
|
||||
$attributes = $plugin->getDefaults();
|
||||
|
||||
$config = array(
|
||||
'attributes' => $plugin->getDefaults()
|
||||
);
|
||||
|
||||
// expose globally for use by Autolink and Clipboard
|
||||
$settings['default_link_target'] = $plugin->getParam('link.target', '');
|
||||
|
||||
// expose globally for use by Autolink and Clipboard
|
||||
$settings['autolink_email'] = $plugin->getParam('link.autolink_email', 1, 1);
|
||||
$settings['autolink_url'] = $plugin->getParam('link.autolink_url', 1, 1);
|
||||
|
||||
if ($plugin->getParam('link.quicklink', 1) == 0) {
|
||||
$config['quicklink'] = false;
|
||||
}
|
||||
|
||||
if ($plugin->getParam('link.basic_dialog', 0) == 1) {
|
||||
$config['basic_dialog'] = true;
|
||||
}
|
||||
|
||||
$settings['link'] = $config;
|
||||
}
|
||||
}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/link/css/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/link/css/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/link/css/link.css
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/link/css/link.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
#href{padding-right:2px!important;width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis}#link_tab{height:100%}#link_tab fieldset{margin:10px 0;padding:2px}#link-options{padding:5px;margin:5px 0;height:calc(100% - 200px);box-sizing:border-box}#link-browser{overflow:auto;padding:0 5px;box-sizing:border-box;height:calc(100% - 42px);margin-top:5px}#text::-moz-placeholder{color:transparent!important}#text::-webkit-input-placeholder{color:transparent!important}#text:-ms-input-placeholder{color:transparent!important}#text[disabled]::-webkit-input-placeholder{color:inherit!important}#text[disabled]::-moz-placeholder{color:inherit!important}.anchor .uk-icon-file-text:before{content:"\eca0"}.uk-tree{display:flex;flex-wrap:wrap}.uk-tree li{flex:1 0 auto;width:100%}.uk-tree-node li{position:relative}.file .uk-tree-row>a{padding:0 0 0 32px}.uk-tree-node li.anchor{padding:0 0 0 64px}.uk-tree-node li button.link-preview{visibility:hidden;pointer-events:none;position:absolute;right:0;top:0}.uk-tree-node li.file:focus button.link-preview,.uk-tree-node li.file:hover button.link-preview{visibility:visible;pointer-events:inherit}.uk-tree a{width:calc(100% - 64px)}.uk-tree-row .uk-tree-text{width:calc(100% - 38px)}.uk-button-link:hover{text-decoration:none}.uk-icon{pointer-events:none}
|
||||
2
components/com_jce/editor/tiny_mce/plugins/link/editor_plugin.js
vendored
Normal file
2
components/com_jce/editor/tiny_mce/plugins/link/editor_plugin.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
components/com_jce/editor/tiny_mce/plugins/link/img/icons.png
vendored
Normal file
BIN
components/com_jce/editor/tiny_mce/plugins/link/img/icons.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
1
components/com_jce/editor/tiny_mce/plugins/link/img/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/link/img/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/link/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/link/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/link/js/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/link/js/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/link/js/link.js
vendored
Normal file
2
components/com_jce/editor/tiny_mce/plugins/link/js/link.js
vendored
Normal file
File diff suppressed because one or more lines are too long
113
components/com_jce/editor/tiny_mce/plugins/link/link.php
vendored
Normal file
113
components/com_jce/editor/tiny_mce/plugins/link/link.php
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
<?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;
|
||||
|
||||
// Link Plugin Controller
|
||||
class WFLinkPlugin extends WFEditorPlugin
|
||||
{
|
||||
protected $name = 'link';
|
||||
|
||||
public $extensions = array();
|
||||
public $popups = array();
|
||||
public $tabs = array();
|
||||
|
||||
/**
|
||||
* Override execute function to intialize links and search
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function execute() {
|
||||
$this->getLinks();
|
||||
$this->getSearch('link');
|
||||
|
||||
parent::execute();
|
||||
}
|
||||
|
||||
public function display()
|
||||
{
|
||||
parent::display();
|
||||
|
||||
$document = WFDocument::getInstance();
|
||||
$settings = $this->getSettings();
|
||||
|
||||
$document->addScriptDeclaration('LinkDialog.settings=' . json_encode($settings) . ';');
|
||||
|
||||
$tabs = WFTabs::getInstance(array(
|
||||
'base_path' => WF_EDITOR_PLUGIN,
|
||||
));
|
||||
|
||||
// Add tabs
|
||||
$tabs->addTab('link', 1, array('plugin' => $this));
|
||||
$tabs->addTab('advanced', $this->getParam('tabs_advanced', 1));
|
||||
|
||||
// get and display links
|
||||
$links = $this->getLinks();
|
||||
$links->display();
|
||||
|
||||
// get and display search
|
||||
$search = $this->getSearch('link');
|
||||
$search->display();
|
||||
|
||||
// Load Popups instance
|
||||
$popups = WFPopupsExtension::getInstance(array(
|
||||
'text' => false,
|
||||
'default' => $this->getParam('link.popups.default', ''),
|
||||
));
|
||||
|
||||
$popups->display();
|
||||
|
||||
// add link stylesheet
|
||||
$document->addStyleSheet(array('link'), 'plugins');
|
||||
// add link scripts last
|
||||
$document->addScript(array('link'), 'plugins');
|
||||
}
|
||||
|
||||
public function getLinks()
|
||||
{
|
||||
static $links;
|
||||
|
||||
if (!isset($links)) {
|
||||
$links = WFLinkExtension::getInstance();
|
||||
}
|
||||
|
||||
return $links;
|
||||
}
|
||||
|
||||
public function getSearch($type = 'link')
|
||||
{
|
||||
static $search;
|
||||
|
||||
if (!isset($search)) {
|
||||
$search = array();
|
||||
}
|
||||
|
||||
if (empty($search[$type])) {
|
||||
$search[$type] = WFSearchExtension::getInstance($type);
|
||||
}
|
||||
|
||||
return $search[$type];
|
||||
}
|
||||
|
||||
public function getSettings($settings = array())
|
||||
{
|
||||
$profile = $this->getProfile();
|
||||
|
||||
$settings = array(
|
||||
'file_browser' => $this->getParam('file_browser', 1) && in_array('browser', explode(',', $profile->plugins)),
|
||||
'attributes' => array(
|
||||
'target' => $this->getParam('attributes_target', 1),
|
||||
'anchor' => $this->getParam('attributes_anchor', 1),
|
||||
),
|
||||
);
|
||||
|
||||
return parent::getSettings($settings);
|
||||
}
|
||||
}
|
||||
186
components/com_jce/editor/tiny_mce/plugins/link/link.xml
vendored
Normal file
186
components/com_jce/editor/tiny_mce/plugins/link/link.xml
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_LINK_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_LINK_DESC</description>
|
||||
<icon>link</icon>
|
||||
<layout>link</layout>
|
||||
<files></files>
|
||||
<fields name="link">
|
||||
<fieldset name="config">
|
||||
<fieldset name="defaults">
|
||||
<field name="target" type="list" default="" label="WF_LABEL_TARGET" description="WF_LINK_PARAM_DEFAULT_TARGET_DESC">
|
||||
<option value="">WF_OPTION_NOT_SET</option>
|
||||
<option value="_self">WF_OPTION_TARGET_SELF</option>
|
||||
<option value="_blank">WF_OPTION_TARGET_BLANK</option>
|
||||
<option value="_parent">WF_OPTION_TARGET_PARENT</option>
|
||||
<option value="_top">WF_OPTION_TARGET_TOP</option>
|
||||
</field>
|
||||
|
||||
<field type="text" name="id" default="" size="50" label="WF_LABEL_ID" description="WF_LABEL_ID_DESC" />
|
||||
<field type="text" name="style" default="" size="50" label="WF_LABEL_STYLE" description="WF_LABEL_STYLE_DESC" />
|
||||
<field type="text" name="classes" default="" size="50" label="WF_LABEL_CLASSES" description="WF_LABEL_CLASSES_DESC" />
|
||||
<field type="list" name="direction" default="" label="WF_LABEL_DIR" description="WF_LABEL_DIR_DESC">
|
||||
<option value="">WF_OPTION_NOT_SET</option>
|
||||
<option value="ltr">WF_OPTION_LTR</option>
|
||||
<option value="rtl">WF_OPTION_RTL</option>
|
||||
</field>
|
||||
|
||||
<field type="text" name="hreflang" default="" size="50" label="WF_LABEL_HREFLANG" description="WF_LABEL_HREFLANG_DESC" />
|
||||
<field type="text" name="lang" default="" size="50" label="WF_LABEL_LANG" description="WF_LABEL_LANG_DESC" />
|
||||
<field type="text" name="charset" default="" size="50" label="WF_LABEL_CHARSET" description="WF_LABEL_CHARSET_DESC" />
|
||||
<field type="text" name="type" default="" size="50" label="WF_LABEL_MIME_TYPE" description="WF_LABEL_MIME_TYPE_DESC" />
|
||||
<field type="list" name="rel" default="" class="editable" label="WF_LABEL_REL" description="WF_LABEL_REL_DESC">
|
||||
<option value="">WF_OPTION_NOT_SET</option>
|
||||
<option value="nofollow">No Follow</option>
|
||||
<option value="alternate">Alternate</option>
|
||||
<option value="designates">Designates</option>
|
||||
<option value="stylesheet">Stylesheet</option>
|
||||
<option value="start">Start</option>
|
||||
<option value="next">Next</option>
|
||||
<option value="prev">Prev</option>
|
||||
<option value="contents">Contents</option>
|
||||
<option value="index">Index</option>
|
||||
<option value="glossary">Glossary</option>
|
||||
<option value="copyright">Copyright</option>
|
||||
<option value="chapter">Chapter</option>
|
||||
<option value="subsection">Subsection</option>
|
||||
<option value="appendix">Appendix</option>
|
||||
<option value="help">Help</option>
|
||||
<option value="bookmark">Bookmark</option>
|
||||
</field>
|
||||
<field type="list" name="rev" default="" label="WF_LABEL_REV" description="WF_LABEL_REV_DESC">
|
||||
<option value="">WF_OPTION_NOT_SET</option>
|
||||
<option value="alternate">Alternate</option>
|
||||
<option value="designates">Designates</option>
|
||||
<option value="stylesheet">Stylesheet</option>
|
||||
<option value="start">Start</option>
|
||||
<option value="next">Next</option>
|
||||
<option value="prev">Prev</option>
|
||||
<option value="contents">Contents</option>
|
||||
<option value="index">Index</option>
|
||||
<option value="glossary">Glossary</option>
|
||||
<option value="copyright">Copyright</option>
|
||||
<option value="chapter">Chapter</option>
|
||||
<option value="subsection">Subsection</option>
|
||||
<option value="appendix">Appendix</option>
|
||||
<option value="help">Help</option>
|
||||
<option value="bookmark">Bookmark</option>
|
||||
</field>
|
||||
<field type="text" name="tabindex" default="" size="50" label="WF_LABEL_TABINDEX" description="WF_LABEL_TABINDEX_DESC" />
|
||||
<field type="text" name="accesskey" default="" size="50" label="WF_LABEL_ACCESSKEY" description="WF_LABEL_ACCESSKEY_DESC" />
|
||||
</fieldset>
|
||||
|
||||
<field name="file_browser" type="yesno" default="1" label="WF_URL_FILE_BROWSER" description="WF_URL_FILE_BROWSER_DESC" class="btn-group btn-group-yesno">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="basic_dialog" type="yesno" default="0" label="WF_PARAM_BASIC_DIALOG" description="WF_PARAM_BASIC_DIALOG_DESC" class="btn-group btn-group-yesno">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="quicklink" type="yesno" default="1" label="WF_LINK_QUICKLINK" description="WF_LINK_QUICKLINK_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="autolink_email" type="yesno" default="1" label="WF_LINK_AUTOLINK_EMAIL" description="WF_LINK_AUTOLINK_EMAIL_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="autolink_url" type="yesno" default="1" label="WF_LINK_AUTOLINK_URL" description="WF_LINK_AUTOLINK_URL_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<!--field type="container" label="WF_PARAM_FILE_BROWSER_OPTIONS" showon="file_browser:1">
|
||||
<field name="dir" type="text" default="" size="50" label="WF_PARAM_DIRECTORY" description="WF_PARAM_DIRECTORY_DESC"/>
|
||||
<field name="max_size" class="input-small" hint="1024" max="" type="uploadmaxsize" step="128" label="WF_PARAM_UPLOAD_SIZE" description="WF_PARAM_UPLOAD_SIZE_DESC" />
|
||||
<field name="extensions" type="extension" class="extensions create" default="windowsmedia=avi,wmv,wm,asf,asx,wmx,wvx;quicktime=mov,qt,mpg,mpeg;flash=swf;shockwave=dcr;real=rm,ra,ram;divx=divx;video=mp4,ogv,ogg,webm;audio=mp3,ogg,webm,wav,m4a;silverlight=xap" label="WF_PARAM_EXTENSIONS" description="WF_PARAM_EXTENSIONS_DESC" />
|
||||
<field name="filesystem" type="filesystem" default="" label="WF_PARAM_FILESYSTEM" description="WF_PARAM_FILESYSTEM_DESC">
|
||||
<option value="">WF_OPTION_INHERIT</option>
|
||||
</field>
|
||||
|
||||
<field name="upload" type="yesno" default="1" label="WF_PARAM_UPLOAD" description="WF_PARAM_UPLOAD_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="folder_new" type="yesno" default="1" label="WF_PARAM_FOLDER_CREATE" description="WF_PARAM_FOLDER_CREATE_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="folder_delete" type="yesno" default="1" label="WF_PARAM_FOLDER_DELETE" description="WF_PARAM_FOLDER_DELETE_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="folder_rename" type="yesno" default="1" label="WF_PARAM_FOLDER_RENAME" description="WF_PARAM_FOLDER_RENAME_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="folder_move" type="yesno" default="1" label="WF_PARAM_FOLDER_PASTE" description="WF_PARAM_FOLDER_PASTE_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="file_delete" type="yesno" default="1" label="WF_PARAM_FILE_DELETE" description="WF_PARAM_FILE_DELETE_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="file_rename" type="yesno" default="1" label="WF_PARAM_FILE_RENAME" description="WF_PARAM_FILE_RENAME_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="file_move" type="yesno" default="1" label="WF_PARAM_FILE_PASTE" description="WF_PARAM_FILE_PASTE_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
</field-->
|
||||
<field type="container" label="" showon="basic_dialog:0">
|
||||
<field name="tabs_advanced" type="yesno" default="1" label="WF_LINK_PARAM_TAB_ADVANCED" description="WF_LINK_PARAM_TAB_ADVANCED_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="attributes_anchor" type="yesno" default="1" label="WF_LINK_SHOW_ANCHOR" description="WF_LINK_SHOW_ANCHOR_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="attributes_target" type="yesno" default="1" label="WF_LINK_SHOW_TARGET" description="WF_LINK_SHOW_TARGET_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
</field>
|
||||
</fieldset>
|
||||
|
||||
<fieldset name="plugin.links" />
|
||||
<fieldset name="plugin.search" />
|
||||
<fieldset name="plugin.popups" />
|
||||
|
||||
</fields>
|
||||
<extensions>links,search,popups</extensions>
|
||||
<languages></languages>
|
||||
<help>
|
||||
<topic key="link.about" title="WF_LINK_HELP_ABOUT" />
|
||||
<topic key="link.interface" title="WF_LINK_HELP_INTERFACE" />
|
||||
<!--topic key="link.content" title="WF_LINK_HELP_LINKS" /-->
|
||||
<topic key="link.advanced" title="WF_LINK_HELP_ADVANCED" />
|
||||
<topic key="link.insert" title="WF_LINK_HELP_INSERT" />
|
||||
<topic key="link.email" title="WF_LINK_HELP_EMAIL" />
|
||||
</help>
|
||||
</extension>
|
||||
139
components/com_jce/editor/tiny_mce/plugins/link/tmpl/advanced.php
vendored
Normal file
139
components/com_jce/editor/tiny_mce/plugins/link/tmpl/advanced.php
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
<?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-1-1 uk-width-small-3-10" for="id" class="hastip" title="<?php echo JText::_('WF_LABEL_ID_DESC'); ?>"><?php echo JText::_('WF_LABEL_ID'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10"><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-1 uk-width-small-3-10" for="style" class="hastip" title="<?php echo JText::_('WF_LABEL_STYLE_DESC'); ?>"><?php echo JText::_('WF_LABEL_STYLE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10"><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-1 uk-width-small-3-10" for="classes" class="hastip" title="<?php echo JText::_('WF_LABEL_CLASSES_DESC'); ?>"><?php echo JText::_('WF_LABEL_CLASSES'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10">
|
||||
<input type="text" id="classes" class="uk-datalist" list="classes_datalist" multiple />
|
||||
<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-1 uk-width-small-3-10" for="dir" class="hastip" title="<?php echo JText::_('WF_LABEL_DIR_DESC'); ?>"><?php echo JText::_('WF_LABEL_DIR'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10">
|
||||
<select id="dir">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="ltr"><?php echo JText::_('WF_OPTION_LTR'); ?></option>
|
||||
<option value="rtl"><?php echo JText::_('WF_OPTION_RTL'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-3-10" for="hreflang" class="hastip" title="<?php echo JText::_('WF_LABEL_HREFLANG_DESC'); ?>"><?php echo JText::_('WF_LABEL_HREFLANG'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10"><input type="text" id="hreflang" value="" /></div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-3-10" for="lang" class="hastip" title="<?php echo JText::_('WF_LABEL_LANG_DESC'); ?>"><?php echo JText::_('WF_LABEL_LANG'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10"><input id="lang" type="text" value="" /></div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-3-10" for="charset" class="hastip" title="<?php echo JText::_('WF_LABEL_CHARSET_DESC'); ?>"><?php echo JText::_('WF_LABEL_CHARSET'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10"><input type="text" id="charset" value="" /></div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-3-10" for="type" class="hastip" title="<?php echo JText::_('WF_LABEL_MIME_TYPE_DESC'); ?>"><?php echo JText::_('WF_LABEL_MIME_TYPE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10"><input type="text" id="type" value="" /></div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-3-10" for="rel" class="hastip" title="<?php echo JText::_('WF_LABEL_REL_DESC'); ?>"><?php echo JText::_('WF_LABEL_REL'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10">
|
||||
<input type="text" id="rel" class="uk-datalist" list="rel_datalist" multiple />
|
||||
<datalist id="rel_datalist">
|
||||
<option value="nofollow">No Follow</option>
|
||||
<option value="alternate">Alternate</option>
|
||||
<option value="designates">Designates</option>
|
||||
<option value="stylesheet">Stylesheet</option>
|
||||
<option value="start">Start</option>
|
||||
<option value="next">Next</option>
|
||||
<option value="prev">Prev</option>
|
||||
<option value="contents">Contents</option>
|
||||
<option value="index">Index</option>
|
||||
<option value="glossary">Glossary</option>
|
||||
<option value="copyright">Copyright</option>
|
||||
<option value="chapter">Chapter</option>
|
||||
<option value="subsection">Subsection</option>
|
||||
<option value="appendix">Appendix</option>
|
||||
<option value="help">Help</option>
|
||||
<option value="bookmark">Bookmark</option>
|
||||
<option value="sponsored">Sponsored</option>
|
||||
<option value="ugc">User Generated Content</option>
|
||||
</datalist>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-3-10" for="rev" class="hastip" title="<?php echo JText::_('WF_LABEL_REV_DESC'); ?>"><?php echo JText::_('WF_LABEL_REV'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10">
|
||||
<select id="rev">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="alternate">Alternate</option>
|
||||
<option value="designates">Designates</option>
|
||||
<option value="stylesheet">Stylesheet</option>
|
||||
<option value="start">Start</option>
|
||||
<option value="next">Next</option>
|
||||
<option value="prev">Prev</option>
|
||||
<option value="contents">Contents</option>
|
||||
<option value="index">Index</option>
|
||||
<option value="glossary">Glossary</option>
|
||||
<option value="copyright">Copyright</option>
|
||||
<option value="chapter">Chapter</option>
|
||||
<option value="subsection">Subsection</option>
|
||||
<option value="appendix">Appendix</option>
|
||||
<option value="help">Help</option>
|
||||
<option value="bookmark">Bookmark</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-3-10" for="tabindex" class="hastip" title="<?php echo JText::_('WF_LABEL_TABINDEX_DESC'); ?>"><?php echo JText::_('WF_LABEL_TABINDEX'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10"><input type="text" id="tabindex" value="" /></div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-3-10" for="accesskey" class="hastip" title="<?php echo JText::_('WF_LABEL_ACCESSKEY_DESC'); ?>"><?php echo JText::_('WF_LABEL_ACCESSKEY'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-7-10"><input type="text" id="accesskey" value="" /></div>
|
||||
</div>
|
||||
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<div class="uk-form-controls uk-width-1-1">
|
||||
<div class="uk-repeatable">
|
||||
<div class="uk-form-controls uk-flex uk-margin-small uk-width-9-10">
|
||||
<label class="uk-form-label uk-width-1-10">
|
||||
<?php echo JText::_('WF_LABEL_NAME'); ?>
|
||||
</label>
|
||||
<div class="uk-form-controls uk-width-4-10">
|
||||
<input type="text" name="custom_name[]" />
|
||||
</div>
|
||||
<label class="uk-form-label uk-width-1-10">
|
||||
<?php echo JText::_('WF_LABEL_VALUE'); ?>
|
||||
</label>
|
||||
<div class="uk-form-controls uk-width-4-10">
|
||||
<input type="text" name="custom_value[]" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-controls uk-width-1-10 uk-margin-small-left">
|
||||
<button type="button" class="uk-button uk-button-link uk-repeatable-create">
|
||||
<i class="uk-icon-plus"></i>
|
||||
</button>
|
||||
<button type="button" class="uk-button uk-button-link uk-repeatable-delete">
|
||||
<i class="uk-icon-trash"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
26
components/com_jce/editor/tiny_mce/plugins/link/tmpl/default.php
vendored
Normal file
26
components/com_jce/editor/tiny_mce/plugins/link/tmpl/default.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');
|
||||
|
||||
$tabs = WFTabs::getInstance();
|
||||
|
||||
?>
|
||||
<form action="#" class="uk-form uk-form-horizontal">
|
||||
<!-- Render Tabs -->
|
||||
<?php $tabs->render(); ?>
|
||||
<!-- Token -->
|
||||
<input type="hidden" id="token" name="<?php echo JSession::getFormToken(); ?>" value="1" />
|
||||
</form>
|
||||
<div class="actionPanel">
|
||||
<button class="button" id="cancel"><?php echo JText::_('WF_LABEL_CANCEL')?></button>
|
||||
<button class="button" id="help"><?php echo JText::_('WF_LABEL_HELP')?></button>
|
||||
<button class="button" id="insert"><?php echo JText::_('WF_LABEL_INSERT')?></button>
|
||||
</div>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/link/tmpl/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/link/tmpl/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
59
components/com_jce/editor/tiny_mce/plugins/link/tmpl/link.php
vendored
Normal file
59
components/com_jce/editor/tiny_mce/plugins/link/tmpl/link.php
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
<?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;
|
||||
|
||||
$search = $this->plugin->getSearch('link');
|
||||
$links = $this->plugin->getLinks();
|
||||
|
||||
?>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-1-5" for="href" class="hastip" title="<?php echo JText::_('WF_LABEL_URL_DESC'); ?>"><?php echo JText::_('WF_LABEL_URL'); ?></label>
|
||||
<div class="uk-form-controls uk-form-icon uk-form-icon-flip uk-width-1-1 uk-width-small-4-5">
|
||||
<input id="href" type="text" value="" required class="browser" />
|
||||
<button class="email uk-icon uk-icon-email uk-button uk-button-link" aria-haspopup="true" aria-label="<?php echo JText::_('WF_LABEL_EMAIL'); ?>" title="<?php echo JText::_('WF_LABEL_EMAIL'); ?>"></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-form-row uk-grid uk-grid-small">
|
||||
<label for="text" class="uk-form-label uk-width-1-1 uk-width-small-1-5 hastip" title="<?php echo JText::_('WF_LINK_LINK_TEXT_DESC'); ?>"><?php echo JText::_('WF_LINK_LINK_TEXT'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-4-5">
|
||||
<input id="text" type="text" value="" required placeholder="<?php echo JText::_('WF_ELEMENT_SELECTION'); ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($search->isEnabled() || count($links->getLists())) : ?>
|
||||
<div id="link-options" class="uk-placeholder">
|
||||
<?php echo $search->render(); ?>
|
||||
<?php echo $links->render(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="uk-form-row uk-hidden-mini uk-form-row uk-grid uk-grid-small" id="attributes-anchor">
|
||||
<label for="anchor" class="uk-form-label uk-width-1-1 uk-width-small-1-5 hastip" title="<?php echo JText::_('WF_LABEL_ANCHORS_DESC'); ?>"><?php echo JText::_('WF_LABEL_ANCHORS'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-4-5" id="anchor_container"></div>
|
||||
</div>
|
||||
|
||||
<div class="uk-form-row uk-grid uk-grid-small" id="attributes-target">
|
||||
<label for="target" class="uk-form-label uk-width-1-1 uk-width-small-1-5 hastip" title="<?php echo JText::_('WF_LABEL_TARGET_DESC'); ?>"><?php echo JText::_('WF_LABEL_TARGET'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-4-5">
|
||||
<select id="target">
|
||||
<option value=""><?php echo JText::_('WF_OPTION_NOT_SET'); ?></option>
|
||||
<option value="_self"><?php echo JText::_('WF_OPTION_TARGET_SELF'); ?></option>
|
||||
<option value="_blank"><?php echo JText::_('WF_OPTION_TARGET_BLANK'); ?></option>
|
||||
<option value="_parent"><?php echo JText::_('WF_OPTION_TARGET_PARENT'); ?></option>
|
||||
<option value="_top"><?php echo JText::_('WF_OPTION_TARGET_TOP'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-form-row uk-grid uk-grid-small uk-hidden-mini" id="attributes-title">
|
||||
<label class="uk-form-label uk-width-1-1 uk-width-small-1-5" for="title" class="hastip" title="<?php echo JText::_('WF_LABEL_TITLE_DESC'); ?>"><?php echo JText::_('WF_LABEL_TITLE'); ?></label>
|
||||
<div class="uk-form-controls uk-width-1-1 uk-width-small-4-5">
|
||||
<input id="title" type="text" value="" />
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user