first commit
45
components/com_jce/editor/tiny_mce/plugins/advlist/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 WFAdvlistPluginConfig
|
||||
{
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
$bullet = self::getBulletList();
|
||||
$settings['advlist_bullet_styles'] = $bullet !== false ? implode(',', $bullet) : false;
|
||||
|
||||
$number = self::getNumberList();
|
||||
$settings['advlist_number_styles'] = $number !== false ? implode(',', $number) : false;
|
||||
}
|
||||
|
||||
private static function getNumberList()
|
||||
{
|
||||
$wf = WFApplication::getInstance();
|
||||
$number = (array) $wf->getParam('lists.number_styles');
|
||||
|
||||
if (empty($number) || (count($number) === 1 && array_shift($number) === 'default')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $number;
|
||||
}
|
||||
|
||||
private static function getBulletList()
|
||||
{
|
||||
$wf = WFApplication::getInstance();
|
||||
$bullet = (array) $wf->getParam('lists.bullet_styles');
|
||||
|
||||
if (empty($bullet) || (count($bullet) === 1 && array_shift($bullet) === 'default')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $bullet;
|
||||
}
|
||||
}
|
||||
2
components/com_jce/editor/tiny_mce/plugins/advlist/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){var each=tinymce.each,DOM=tinymce.DOM,Event=tinymce.dom.Event;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(ed,url){function buildFormats(str){var formats=[];return each(str.split(/,/),function(type){var title=type.replace(/-/g,"_");"default"===type&&(title="def"),formats.push({title:"advlist."+title,styles:{listStyleType:"default"===type?"":type}})}),formats}var self=this;self.editor=ed;var numlist=ed.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");numlist&&(self.numlist=buildFormats(numlist));var bullist=ed.getParam("advlist_bullet_styles","default,circle,disc,square");bullist&&(self.bullist=buildFormats(bullist))},createControl:function(name,cm){function hasFormat(node,format){var state=!0;return each(format.styles,function(value,name){if(editor.dom.getStyle(node,name)!=value)return state=!1,!1}),state}function applyListFormat(){var list,dom=editor.dom,sel=editor.selection;list=dom.getParent(sel.getNode(),"ol,ul"),list&&list.nodeName!=("bullist"==name?"OL":"UL")&&format&&!hasFormat(list,format)||editor.execCommand("bullist"==name?"InsertUnorderedList":"InsertOrderedList"),format&&(list=dom.getParent(sel.getNode(),"ol,ul"),list&&(dom.setStyles(list,format.styles),list.removeAttribute("data-mce-style"))),editor.focus()}function openDialog(){var form=cm.createForm("numlist_form");form.empty();var start_ctrl=cm.createTextBox("numlist_start_ctrl",{label:editor.getLang("advlist.start","Start"),name:"start",subtype:"number",attributes:{min:"1"}});form.add(start_ctrl);var reversed_ctrl=cm.createCheckBox("numlist_reversed_ctrl",{label:editor.getLang("advlist.reversed","Reversed"),name:"reversed"});form.add(reversed_ctrl),editor.windowManager.open({title:editor.getLang("advanced.numlist_desc","Ordered List"),items:[form],size:"mce-modal-landscape-small",open:function(){var label=editor.getLang("update","Update"),node=editor.selection.getNode(),list=editor.dom.getParent(node,"ol");list&&(start_ctrl.value(editor.dom.getAttrib(list,"start")||1),reversed_ctrl.checked(!!editor.dom.getAttrib(list,"reversed"))),DOM.setHTML(this.id+"_insert",label)},buttons:[{title:editor.getLang("remove","Remove"),id:"remove",onclick:function(){applyListFormat(),this.close()}},{title:editor.getLang("cancel","Cancel"),id:"cancel"},{title:editor.getLang("insert","Insert"),id:"insert",onsubmit:function(e){var data=form.submit();Event.cancel(e);var list=editor.dom.getParent(editor.selection.getNode(),"ol");list&&each(data,function(value,key){value||(value=null),"start"==key&&"1"==value&&(value=null),editor.dom.setAttrib(list,key,value)})},classes:"primary",scope:self}]})}var btn,format,self=this,editor=self.editor;if("numlist"==name||"bullist"==name)return self[name]&&"advlist.def"===self[name][0].title&&(format=self[name][0]),self[name]?(btn=cm.createSplitButton(name,{title:"advanced."+name+"_desc",class:"mce_"+name,onclick:function(){if("numlist"===name){var list=editor.dom.getParent(editor.selection.getNode(),"ol");if(list)return openDialog()}applyListFormat()}}),btn.onRenderMenu.add(function(btn,menu){menu.onHideMenu.add(function(){self.bookmark&&(editor.selection.moveToBookmark(self.bookmark),self.bookmark=0)}),menu.onShowMenu.add(function(){var fmtList,dom=editor.dom,list=dom.getParent(editor.selection.getNode(),"ol,ul");(list||format)&&(fmtList=self[name],each(menu.items,function(item){var state=!0;item.setSelected(0),list&&!item.isDisabled()&&(each(fmtList,function(fmt){if(fmt.id==item.id&&!hasFormat(list,fmt))return state=!1,!1}),state&&item.setSelected(1))}),list||menu.items[format.id].setSelected(1)),editor.focus(),tinymce.isIE&&(self.bookmark=editor.selection.getBookmark(1))}),each(self[name],function(item){item.id=editor.dom.uniqueId();var style=item.styles.listStyleType,icon=style.replace(/-/g,"_");menu.add({id:item.id,title:item.title,icon:"list_"+icon,onclick:function(){format=item,applyListFormat()}})})}),btn):btn=cm.createButton(name,{title:"advanced."+name+"_desc",class:"mce_"+name,onclick:function(){applyListFormat()}})}}),tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/advlist/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
17
components/com_jce/editor/tiny_mce/plugins/anchor/anchor.xml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_ANCHOR_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_ANCHOR_DESC</description>
|
||||
<icon>anchor</icon>
|
||||
<layout>anchor</layout>
|
||||
<files></files>
|
||||
<languages></languages>
|
||||
<help></help>
|
||||
</extension>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/anchor/css/content.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
a.mce-item-anchor{width:11px!important;height:11px!important;background:url(../img/anchor.gif) 2px center no-repeat;padding-left:14px;border:1px dashed #B4D4FF;text-decoration:none;font-weight:400;color:inherit;vertical-align:middle;-ms-user-select:all;-ms-user-modify:read-only;user-select:all;user-modify:read-only;-webkit-user-select:all;-webkit-user-modify:read-only;-moz-user-select:all;-moz-user-modify:read-only}a.mce-item-anchor::selection{background-color:#b4d4ff}.mce-item-anchor.mce-item-selected{background-color:#b4d4ff}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/anchor/css/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/anchor/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){var DOM=tinymce.DOM,each=tinymce.each,VK=tinymce.VK;tinymce.create("tinymce.plugins.AnchorPlugin",{init:function(ed,url){function isAnchor(n){return ed.dom.getParent(n,"a.mce-item-anchor")}this.editor=ed,this.url=url;var self=this;ed.settings.allow_html_in_named_anchor=!0,ed.addCommand("mceInsertAnchor",function(ui,value){return self._insertAnchor(value)}),ed.onBeforeExecCommand.add(function(ed,cmd,ui,v,o){var se=ed.selection,n=se.getNode();switch(cmd){case"unlink":if(isAnchor(n)){var id=n.id||n.name||"";if(!id)return;each(ed.dom.select("a[href]",ed.getBody()),function(node){var href=ed.dom.getAttrib(node,"href");href==="#"+id&&ed.dom.remove(node,1)})}var href=ed.dom.getAttrib(n,"href");href&&"#"===href.charAt(0)&&each(ed.dom.select("a[id],a[name]",ed.getBody()),function(node){var id=node.id||node.name;id&&href==="#"+id&&ed.dom.remove(node,1)})}}),ed.onNodeChange.add(function(ed,cm,n,co){var s=isAnchor(n);ed.dom.removeClass(ed.dom.select(".mce-item-anchor.mce-item-selected"),"mce-item-selected"),cm.setActive("anchor",s),s&&ed.dom.addClass(n,"mce-item-selected")}),ed.onKeyDown.add(function(ed,e){e.keyCode!==VK.BACKSPACE&&e.keyCode!==VK.DELETE||self._removeAnchor(e)}),ed.onInit.add(function(){ed.theme&&ed.theme.onResolveName&&ed.theme.onResolveName.add(function(theme,o){var v,n=o.node,href=n.href;"a"!==o.name||href&&"#"!=href.charAt(0)||!n.name&&!n.id||(v=n.name||n.id),v&&(o.name="a#"+v)})}),ed.onPreInit.add(function(){function isAnchorLink(node){var href=node.attr("href"),name=node.attr("name")||node.attr("id");return!!name&&(!href||"#"===href.charAt(0)&&href.length>1)}ed.settings.compress.css||ed.dom.loadCSS(url+"/css/content.css"),ed.parser.addNodeFilter("a",function(nodes){for(var i=0,len=nodes.length;i<len;i++){var node=nodes[i],cls=node.attr("class")||"";isAnchorLink(node)&&(cls&&/mce-item-anchor/.test(cls)!==!1||(cls+=" mce-item-anchor",node.attr("class",tinymce.trim(cls))))}})}),ed.onBeforeSetContent.add(function(ed,o){o.content=o.content.replace(/<a id="([^"]+)"><\/a>/gi,'<a id="$1">\ufeff</a>')}),ed.addButton("anchor",{title:"anchor.desc",onclick:function(){var html='<div class="mceModalRow"> <label for="'+ed.id+'_anchor_input">'+ed.getLang("anchor.name","Name")+'</label> <div class="mceModalControl"> <input type="text" id="'+ed.id+'_anchor_input" autofocus /> </div></div>';ed.windowManager.open({title:ed.getLang("anchor.desc","Anchor"),content:html,size:"mce-modal-landscape-small",open:function(){var input=DOM.get(ed.id+"_anchor_input");input.value="";var label=ed.getLang("insert","Insert"),v=self._getAnchor();v&&(input.value=v,label=ed.getLang("update","Update")),DOM.setHTML(this.id+"_insert",label),window.setTimeout(function(){input.focus()},10)},buttons:[{title:ed.getLang("anchor.remove","Remove"),id:"remove",onsubmit:function(e){e.target.disabled||self._removeAnchor()},scope:self},{title:ed.getLang("insert","Insert"),id:"insert",onsubmit:function(e){var value=DOM.getValue(ed.id+"_anchor_input");value||(e.cancelSubmit=!0),self._insertAnchor(value)},classes:"primary",scope:self}]})}})},_removeAnchor:function(e){var ed=this.editor,s=ed.selection,n=s.getNode();!s.isCollapsed()&&ed.dom.getParent(n,"a.mce-item-anchor")&&(ed.undoManager.add(),ed.formatter.remove("link"),e&&e.preventDefault())},_getAnchor:function(){var v,ed=this.editor,n=ed.selection.getNode();return n=ed.dom.getParent(n,"a.mce-item-anchor"),v=ed.dom.getAttrib(n,"name")||ed.dom.getAttrib(n,"id")},_insertAnchor:function(v){var attrib,ed=this.editor;if(!v)return ed.windowManager.alert("anchor.invalid"),!1;if(!/^[a-z][a-z0-9\-\_:\.]*$/i.test(v))return ed.windowManager.alert("anchor.invalid"),!1;attrib="name","html4"!==ed.settings.schema&&(attrib="id");var n=ed.selection.getNode(),at={class:"mce-item-anchor"};if(n=ed.dom.getParent(n,"A"))at[attrib]=v,ed.dom.setAttribs(n,at);else{if(ed.dom.select("a["+attrib+'="'+v+'"], img[data-mce-name="'+v+'"], img[id="'+v+'"]',ed.getBody()).length)return ed.windowManager.alert("anchor.exists"),!1;ed.selection.isCollapsed()?(at[attrib]=v,ed.execCommand("mceInsertContent",0,ed.dom.createHTML("a",{id:"__mce_tmp"},"\ufeff"),{skip_undo:1}),n=ed.dom.get("__mce_tmp"),at.id=at.id||null,ed.dom.setAttribs(n,at),ed.selection.select(n)):(at[attrib]=v,ed.execCommand("mceInsertLink",!1,"#mce_temp_url#",{skip_undo:1}),at.href=at["data-mce-href"]=null,each(ed.dom.select('a[href="#mce_temp_url#"]'),function(link){ed.dom.setAttribs(link,at)}))}return ed.execCommand("mceEndUndoLevel"),ed.nodeChanged(),!0}}),tinymce.PluginManager.add("anchor",tinymce.plugins.AnchorPlugin)}();
|
||||
BIN
components/com_jce/editor/tiny_mce/plugins/anchor/img/anchor.gif
vendored
Normal file
|
After Width: | Height: | Size: 70 B |
1
components/com_jce/editor/tiny_mce/plugins/anchor/img/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/anchor/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
30
components/com_jce/editor/tiny_mce/plugins/article/article.xml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_ARTICLE_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_ARTICLE_DESC</description>
|
||||
<icon>readmore,pagebreak</icon>
|
||||
|
||||
<fields name="article">
|
||||
<fieldset name="config">
|
||||
|
||||
<field type="heading" label="WF_PROFILES_PLUGINS_BUTTONS" />
|
||||
|
||||
<field name="buttons" type="buttons" multiple="multiple" default="readmore,pagebreak" label="WF_PARAM_BUTTONS" description="WF_PARAM_BUTTONS_DESC">
|
||||
<option value="readmore">WF_ARTICLE_READMORE</option>
|
||||
<option value="pagebreak">WF_ARTICLE_PAGEBREAK</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
|
||||
<help>
|
||||
<topic key="article.about" title="WF_ARTICLE_HELP_ABOUT" />
|
||||
</help>
|
||||
<languages></languages>
|
||||
</extension>
|
||||
21
components/com_jce/editor/tiny_mce/plugins/article/config.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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 WFArticlePluginConfig
|
||||
{
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
$wf = WFApplication::getInstance();
|
||||
|
||||
//$settings['article_hide_xtd_btns'] = $wf->getParam('article.hide_xtd_btns', 0, 0);
|
||||
$settings['article_show_readmore'] = $wf->getParam('article.show_readmore', 1, 1);
|
||||
$settings['article_show_pagebreak'] = $wf->getParam('article.show_pagebreak', 1, 1);
|
||||
}
|
||||
}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/article/css/content.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hr[class].mce-item-pagebreak,hr[class].mce-item-readmore{display:inline-block;padding:0 2px;margin:0;border:1px dashed #ccc;background-color:#fafafa;background-repeat:no-repeat;background-position:center;height:20px;width:99%;font-size:0;line-height:0;letter-spacing:normal;word-spacing:normal;cursor:pointer}hr[class].mce-item-pagebreak.mce-item-selected,hr[class].mce-item-readmore.mce-item-selected{background-color:#d9edf7;border-color:#31708f}hr[class].mce-item-readmore{background-image:url(../img/readmore.png);clear:both}hr[class].mce-item-pagebreak{background-image:url(../img/pagebreak.png);clear:both}hr[class].mce-item-pagebreak:after{content:attr(title);color:#444;font-size:12px;line-height:20px;padding:0 5px;display:block;float:left}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/article/css/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/article/editor_plugin.js
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/article/img/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
BIN
components/com_jce/editor/tiny_mce/plugins/article/img/pagebreak.png
vendored
Normal file
|
After Width: | Height: | Size: 716 B |
BIN
components/com_jce/editor/tiny_mce/plugins/article/img/readmore.png
vendored
Normal file
|
After Width: | Height: | Size: 373 B |
BIN
components/com_jce/editor/tiny_mce/plugins/article/img/trans.gif
vendored
Normal file
|
After Width: | Height: | Size: 43 B |
1
components/com_jce/editor/tiny_mce/plugins/article/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
17
components/com_jce/editor/tiny_mce/plugins/attributes/attributes.xml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_ATTRIBUTES_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_ATTRIBUTES_DESC</description>
|
||||
<icon>attributes</icon>
|
||||
<layout>attributes</layout>
|
||||
<files></files>
|
||||
<languages></languages>
|
||||
<help></help>
|
||||
</extension>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/attributes/editor_plugin.js
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/attributes/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/autolink/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){var AutoLinkPattern=/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i;tinymce.create("tinymce.plugins.AutolinkPlugin",{init:function(ed,url){var self=this;(ed.getParam("autolink_url",!0)||ed.getParam("autolink_email",!0))&&(ed.settings.autolink_pattern&&(AutoLinkPattern=ed.settings.autolink_pattern),ed.onAutoLink=new tinymce.util.Dispatcher(this),ed.onKeyDown.addToTop(function(ed,e){if(13==e.keyCode)return self.handleEnter(ed)}),tinymce.isIE||(ed.onKeyPress.add(function(ed,e){if(41==e.which)return self.handleEclipse(ed)}),ed.onKeyUp.add(function(ed,e){if(32==e.keyCode)return self.handleSpacebar(ed)})))},handleEclipse:function(ed){this.parseCurrentLine(ed,-1,"(",!0)},handleSpacebar:function(ed){this.parseCurrentLine(ed,0,"",!0)},handleEnter:function(ed){this.parseCurrentLine(ed,-1,"",!1)},parseCurrentLine:function(editor,endOffset,delimiter){function scopeIndex(container,index){if(index<0&&(index=0),3==container.nodeType){var len=container.data.length;index>len&&(index=len)}return index}function setStart(container,offset){1!=container.nodeType||container.hasChildNodes()?rng.setStart(container,scopeIndex(container,offset)):rng.setStartBefore(container)}function setEnd(container,offset){1!=container.nodeType||container.hasChildNodes()?rng.setEnd(container,scopeIndex(container,offset)):rng.setEndAfter(container)}var rng,end,start,endContainer,bookmark,text,matches,prev,len,rngText;if("A"!=editor.selection.getNode().tagName){if(rng=editor.selection.getRng(!0).cloneRange(),rng.startOffset<5){if(prev=rng.endContainer.previousSibling,!prev){if(!rng.endContainer.firstChild||!rng.endContainer.firstChild.nextSibling)return;prev=rng.endContainer.firstChild.nextSibling}if(len=prev.length,setStart(prev,len),setEnd(prev,len),rng.endOffset<5)return;end=rng.endOffset,endContainer=prev}else{if(endContainer=rng.endContainer,3!=endContainer.nodeType&&endContainer.firstChild){for(;3!=endContainer.nodeType&&endContainer.firstChild;)endContainer=endContainer.firstChild;3==endContainer.nodeType&&(setStart(endContainer,0),setEnd(endContainer,endContainer.nodeValue.length))}end=1==rng.endOffset?2:rng.endOffset-1-endOffset}start=end;do setStart(endContainer,end>=2?end-2:0),setEnd(endContainer,end>=1?end-1:0),end-=1,rngText=rng.toString();while(" "!=rngText&&""!==rngText&&160!=rngText.charCodeAt(0)&&end-2>=0&&rngText!=delimiter);if(rng.toString()==delimiter||160==rng.toString().charCodeAt(0)?(setStart(endContainer,end),setEnd(endContainer,start),end+=1):0===rng.startOffset?(setStart(endContainer,0),setEnd(endContainer,start)):(setStart(endContainer,end),setEnd(endContainer,start)),text=rng.toString(),"."==text.charAt(text.length-1)&&setEnd(endContainer,start-1),text=rng.toString(),matches=text.match(AutoLinkPattern)){if("www."==matches[1]?matches[1]="https://www.":/@$/.test(matches[1])&&!/^mailto:/.test(matches[1])&&(matches[1]="mailto:"+matches[1]),matches[1].indexOf("http")!==-1&&!editor.getParam("autolink_url",!0))return;if(matches[1].indexOf("mailto:")!==-1&&!editor.getParam("autolink_email",!0))return;bookmark=editor.selection.getBookmark(),editor.selection.setRng(rng),editor.execCommand("createlink",!1,matches[1]+matches[2]);var node=editor.selection.getNode();editor.settings.default_link_target&&editor.dom.setAttrib(node,"target",editor.settings.default_link_target),editor.onAutoLink.dispatch(editor,{node:node}),editor.selection.moveToBookmark(bookmark),editor.nodeChanged()}}}}),tinymce.PluginManager.add("autolink",tinymce.plugins.AutolinkPlugin)}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/autolink/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
17
components/com_jce/editor/tiny_mce/plugins/autosave/autosave.xml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_AUTOSAVE_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_AUTOSAVE_DESC</description>
|
||||
<icon>autosave</icon>
|
||||
<files></files>
|
||||
<languages></languages>
|
||||
<help></help>
|
||||
</extension>
|
||||
|
||||
2
components/com_jce/editor/tiny_mce/plugins/autosave/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(tinymce){var Dispatcher=tinymce.util.Dispatcher,Storage=window.localStorage;Storage&&(tinymce._beforeUnloadHandler=function(e){var msg;return tinymce.each(tinymce.editors,function(editor){editor.plugins.autosave&&editor.plugins.autosave.storeDraft(),!msg&&editor.isDirty()&&editor.getParam("autosave_ask_before_unload")&&(msg=editor.translate("You have unsaved changes are you sure you want to navigate away?"),"undefined"!=typeof Joomla&&Joomla.loadingLayer&&Joomla.loadingLayer("hide"))}),msg},tinymce.create("tinymce.plugins.AutosavePlugin",{init:function(ed){function parseTime(time,defaultTime){var multipels={s:1e3,m:6e4};return time=/^(\d+)([ms]?)$/.exec(""+(time||defaultTime)),(time[2]?multipels[time[2]]:1)*parseInt(time,10)}function hasDraft(){var time=parseInt(Storage.getItem(prefix+"time"),10)||0;return!((new Date).getTime()-time>settings.autosave_retention)||(removeDraft(!1),!1)}function removeDraft(fire){var content=Storage.getItem(prefix+"draft");Storage.removeItem(prefix+"draft"),Storage.removeItem(prefix+"time"),fire!==!1&&content&&self.onRemoveDraft.dispatch(self,{content:content})}function storeDraft(){if(!isEmpty()&&ed.isDirty()){var content=ed.getContent({format:"raw",no_events:!0}),expires=(new Date).getTime();Storage.setItem(prefix+"draft",content),Storage.setItem(prefix+"time",expires),self.onStoreDraft.dispatch(self,{expires:expires,content:content})}}function restoreDraft(){if(hasDraft()){var content=Storage.getItem(prefix+"draft");ed.setContent(content,{format:"raw"}),self.onRestoreDraft.dispatch(self,{content:content})}}function startStoreDraft(){started||(setInterval(function(){ed.removed||storeDraft()},settings.autosave_interval),started=!0)}function restoreLastDraft(){ed.undoManager.beforeChange(),restoreDraft(),removeDraft(),ed.undoManager.add(),ed.nodeChanged()}function isEmpty(html){var forcedRootBlockName=ed.settings.forced_root_block;return html=tinymce.trim("undefined"==typeof html?ed.getBody().innerHTML:html),""===html||new RegExp("^<"+forcedRootBlockName+"[^>]*>((\xa0| |[ \t]|<br[^>]*>)+?|)</"+forcedRootBlockName+">|<br>$","i").test(html)}var prefix,started,self=this,settings=ed.settings;self.onStoreDraft=new Dispatcher(self),self.onRestoreDraft=new Dispatcher(self),self.onRemoveDraft=new Dispatcher(self),prefix=settings.autosave_prefix||"tinymce-autosave-{path}{query}-{id}-",prefix=prefix.replace(/\{path\}/g,document.location.pathname),prefix=prefix.replace(/\{query\}/g,document.location.search),prefix=prefix.replace(/\{id\}/g,ed.id),settings.autosave_interval=parseTime(settings.autosave_interval,"30s"),settings.autosave_retention=parseTime(settings.autosave_retention,"20m"),ed.addButton("autosave",{title:"autosave.restore_content",onclick:restoreLastDraft}),ed.onNodeChange.add(function(){var controlManager=ed.controlManager;controlManager.get("autosave")&&controlManager.setDisabled("autosave",!hasDraft())}),ed.onInit.add(function(){ed.controlManager.get("autosave")&&startStoreDraft()}),ed.settings.autosave_restore_when_empty!==!1&&(ed.onInit.add(function(){hasDraft()&&isEmpty()&&restoreDraft()}),ed.onSaveContent.add(function(){removeDraft()})),self.storeDraft=storeDraft,window.onbeforeunload=tinymce._beforeUnloadHandler}}),tinymce.PluginManager.add("autosave",tinymce.plugins.AutosavePlugin))}(tinymce);
|
||||
1
components/com_jce/editor/tiny_mce/plugins/autosave/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/blobupload/editor_plugin.js
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/blobupload/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/branding/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){var DOM=tinymce.DOM;tinymce.create("tinymce.plugins.BrandingPlugin",{init:function(ed,url){ed.settings.branding!==!1&&(ed.onPostRender.add(function(){var container=ed.getContentAreaContainer();DOM.insertAfter(DOM.create("div",{class:"mceBranding"},'Powered by JCE Core. <span id="mceBrandingMessage"></span><a href="https://www.joomlacontenteditor.net/purchase" target="_blank" title="Get JCE Pro">JCE Pro</a>'),container)}),ed.onNodeChange.add(function(ed,cm,n,co){var container=ed.getContentAreaContainer(),msg="Get more features with ";"IMG"===n.nodeName&&(msg="Image resizing, thumbnails and editing in "),ed.dom.is(n,".mce-item-media")&&(msg="Upload and manage audio and video with "),DOM.setHTML(DOM.get("mceBrandingMessage",container),msg)}))}}),tinymce.PluginManager.add("branding",tinymce.plugins.BrandingPlugin)}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/branding/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
166
components/com_jce/editor/tiny_mce/plugins/browser/browser.php
vendored
Normal file
@@ -0,0 +1,166 @@
|
||||
<?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/manager.php';
|
||||
|
||||
class WFBrowserPlugin extends WFMediaManager
|
||||
{
|
||||
/*
|
||||
* @var string
|
||||
*/
|
||||
protected $_filetypes = 'doc,docx,dot,dotx,ppt,pps,pptx,ppsx,xls,xlsx,gif,jpeg,jpg,png,webp,apng,avif,pdf,zip,tar,gz,swf,rar,mov,mp4,m4a,flv,mkv,webm,ogg,ogv,qt,wmv,asx,asf,avi,wav,mp3,aiff,oga,odt,odg,odp,ods,odf,rtf,txt,csv';
|
||||
|
||||
public function __construct($config = array())
|
||||
{
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
$config = array(
|
||||
'layout' => 'browser',
|
||||
'can_edit_images' => 1,
|
||||
'show_view_mode' => 1,
|
||||
);
|
||||
|
||||
parent::__construct($config);
|
||||
|
||||
// get mediatype from xml
|
||||
$mediatype = $app->input->getString('mediatype', $app->input->getString('filter', 'files'));
|
||||
|
||||
if ($mediatype) {
|
||||
// clean and lowercase filter value
|
||||
$mediatype = (string) preg_replace('/[^\w_,]/i', '', strtolower($mediatype));
|
||||
|
||||
// get filetypes from params
|
||||
$filetypes = $this->getParam('browser.extensions', $this->get('_filetypes'));
|
||||
|
||||
// get file browser reference
|
||||
$browser = $this->getFileBrowser();
|
||||
|
||||
// add upload event
|
||||
$browser->addEvent('onUpload', array($this, 'onUpload'));
|
||||
|
||||
// map to comma seperated list
|
||||
$filetypes = $browser->getFileTypes('list', $filetypes);
|
||||
|
||||
$map = array(
|
||||
'images' => 'jpg,jpeg,png,apng,gif,webp,avif',
|
||||
'media' => 'avi,wmv,wm,asf,asx,wmx,wvx,mov,qt,mpg,mpeg,m4a,m4v,swf,dcr,rm,ra,ram,divx,mp4,ogv,ogg,webm,flv,f4v,mp3,ogg,wav,xap',
|
||||
'documents' => 'doc,docx,odg,odp,ods,odt,pdf,ppt,pptx,txt,xcf,xls,xlsx,csv',
|
||||
'html' => 'html,htm,txt,md',
|
||||
'files' => $filetypes,
|
||||
);
|
||||
|
||||
// add svg support to images if it is allowed in filetypes
|
||||
if (in_array('svg', explode(',', $filetypes))) {
|
||||
$map['images'] .= ',svg';
|
||||
}
|
||||
|
||||
$accept = explode(',', $filetypes);
|
||||
|
||||
if (array_key_exists($mediatype, $map)) {
|
||||
// process the map to filter permitted extensions
|
||||
array_walk($map, function (&$item, $key) use ($accept) {
|
||||
$items = explode(',', $item);
|
||||
|
||||
$values = array_intersect($items, $accept);
|
||||
$item = empty($values) ? '' : implode(',', $values);
|
||||
});
|
||||
|
||||
$filetypes = $map[$mediatype];
|
||||
} else {
|
||||
$filetypes = implode(',', array_intersect(explode(',', $mediatype), $accept));
|
||||
}
|
||||
|
||||
// set updated filetypes
|
||||
$this->setFileTypes($filetypes);
|
||||
}
|
||||
}
|
||||
|
||||
public function setFileTypes($filetypes = '')
|
||||
{
|
||||
// get file browser reference
|
||||
$browser = $this->getFileBrowser();
|
||||
|
||||
// set updated filetypes
|
||||
$browser->setFileTypes($filetypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the plugin.
|
||||
*/
|
||||
public function display()
|
||||
{
|
||||
parent::display();
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
$document = WFDocument::getInstance();
|
||||
$slot = $app->input->getCmd('slot', 'plugin');
|
||||
|
||||
// update some document variables
|
||||
$document->setName('browser');
|
||||
$document->setTitle(JText::_('WF_BROWSER_TITLE'));
|
||||
|
||||
if ($document->get('standalone') == 1) {
|
||||
if ($slot === 'plugin') {
|
||||
$document->addScript(array('window.min'));
|
||||
|
||||
$callback = $app->input->getCmd('callback', '');
|
||||
$element = $app->input->getCmd('fieldid', 'field-media-id');
|
||||
|
||||
// Joomla 4 field variable not converted
|
||||
if ($element == 'field-media-id') {
|
||||
$element = $app->input->getCmd('element', '');
|
||||
}
|
||||
|
||||
$settings = array(
|
||||
'site_url' => JURI::base(true) . '/',
|
||||
'document_base_url' => JURI::root(),
|
||||
'language' => WFLanguage::getCode(),
|
||||
'element' => $element,
|
||||
'token' => JSession::getFormToken(),
|
||||
);
|
||||
|
||||
if ($callback) {
|
||||
$settings['callback'] = $callback;
|
||||
}
|
||||
|
||||
$document->addScriptDeclaration('tinymce.settings=' . json_encode($settings) . ';');
|
||||
}
|
||||
|
||||
$document->addScript(array('popup.min'), 'plugins');
|
||||
$document->addStyleSheet(array('browser.min'), 'plugins');
|
||||
}
|
||||
|
||||
if ($slot === 'plugin') {
|
||||
$document->addScript(array('browser'), 'plugins');
|
||||
}
|
||||
}
|
||||
|
||||
public function onUpload($file, $relative = '')
|
||||
{
|
||||
parent::onUpload($file, $relative);
|
||||
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
// inline upload
|
||||
if ($app->input->getInt('inline', 0) === 1) {
|
||||
$result = array(
|
||||
'file' => $relative,
|
||||
'name' => basename($file),
|
||||
);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
return array();
|
||||
}
|
||||
}
|
||||
92
components/com_jce/editor/tiny_mce/plugins/browser/browser.xml
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_BROWSER_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_BROWSER_DESC</description>
|
||||
<icon></icon>
|
||||
<files></files>
|
||||
<fields name="browser">
|
||||
<fieldset name="config">
|
||||
<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" placeholder="" />
|
||||
<field name="extensions" type="extension" default="doc,docx,dot,dotx,ppt,pps,pptx,ppsx,xls,xlsx,gif,jpeg,jpg,png,apng,webp,avif,pdf,zip,tar,gz,swf,rar,mov,mp4,m4a,flv,mkv,webm,ogg,ogv,qt,wmv,asx,asf,avi,wav,mp3,aiff,oga,odt,odg,odp,ods,odf,rtf,txt,csv" 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 type="heading" label="WF_PROFILES_PLUGINS_ACCESS" />
|
||||
|
||||
<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 name="allow_download" type="yesno" default="0" label="WF_BROWSER_ALLOW_DOWNLOAD" description="WF_BROWSER_ALLOW_DOWNLOAD_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field type="container" pro="true">
|
||||
<field name="image_editor" type="yesno" default="1" label="WF_MANAGER_IMAGE_EDITOR" description="WF_MANAGER_IMAGE_EDITOR_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
|
||||
<field name="text_editor" type="yesno" default="0" label="WF_MANAGER_TEXT_EDITOR" description="WF_MANAGER_TEXT_EDITOR_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
<field type="heading" label="WF_BROWSER_MEDIAFIELD_OPTIONS" />
|
||||
|
||||
<field name="mediafield_conversion" type="yesno" default="1" label="WF_BROWSER_MEDIAFIELD_CONVERSION" description="WF_BROWSER_MEDIAFIELD_CONVERSION_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
<field name="mediafield_upload" type="yesno" default="1" label="WF_BROWSER_MEDIAFIELD_UPLOAD" description="WF_BROWSER_MEDIAFIELD_UPLOAD_DESC">
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
<languages></languages>
|
||||
<help>
|
||||
<topic key="browser.about" title="WF_BROWSER_HELP_ABOUT" />
|
||||
<topic file="libraries/xml/help/manager.xml" />
|
||||
</help>
|
||||
</extension>
|
||||
17
components/com_jce/editor/tiny_mce/plugins/browser/config.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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 WFBrowserPluginConfig
|
||||
{
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
$settings['file_browser_callback'] = '';
|
||||
}
|
||||
}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/browser/css/browser.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.ui-browser{left:0;right:0}.ui-modal-footer{border:1px solid #ddd}.ui-inline-help .ui-modal-dialog{top:0;height:100%}.ui-inline-help iframe{height:calc(100% - 41px);width:100%}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/browser/css/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/browser/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){tinymce.create("tinymce.plugins.Browser",{init:function(ed,url){var self=this;self.ed=ed,ed.addCommand("mceFileBrowser",function(ui,args,win){self.open(args,win)})},open:function(args,win){args=args||{};var ed=this.ed;return ed.windowManager.open({file:ed.getParam("site_url")+"index.php?option=com_jce&task=plugin.display&plugin=browser"+(args.caller?"."+args.caller:"")+(args.filter?"&filter="+args.filter:""),close_previous:"no",size:"mce-modal-landscape-full"},args),!1}}),tinymce.PluginManager.add("browser",tinymce.plugins.Browser)}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/browser/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/browser/js/browser.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function($){function init(){$("#insert").on("click",function(e){e.preventDefault(),insert()}),$("#cancel").on("click",function(e){e.preventDefault(),tinyMCEPopup.close()});var ed=tinyMCEPopup.editor,src=tinyMCEPopup.getWindowArg("value");Wf.init(),src&&src.indexOf("#joomlaImage")!=-1&&(src=src.substring(0,src.indexOf("#"))),/(:\/\/|www|index.php(.*)\?option)/gi.test(src)&&(src=""),src&&(src=ed.convertURL(src),$(".uk-button-text","#insert").text(tinyMCEPopup.getLang("update","Update",!0))),$("[data-filebrowser]").val(src).filebrowser().on("filebrowser:onfileclick",function(e,file,data){selectFile(data)})}function insert(){var win=tinyMCEPopup.getWindowArg("window"),callback=tinyMCEPopup.getWindowArg("callback");return callback?void $("[data-filebrowser]").trigger("filebrowser:insert",function(selected,data){data.length||(data=[{title:"",url:""}]),"string"==typeof callback&&(selectFile(data[0]),win.document.getElementById(callback).value=$("[data-filebrowser]").val()),"function"==typeof callback&&callback(selected,data),tinyMCEPopup.close()}):tinyMCEPopup.close()}function selectFile(file){var src=file.url||"";src=src.replace(/^\//,""),$("[data-filebrowser]").val(src)}$(document).ready(init)}(jQuery);
|
||||
1
components/com_jce/editor/tiny_mce/plugins/browser/js/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/browser/js/popup.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
var tinyMCE=window.tinymce||window.parent.tinymce,tinyMCEPopup={getParam:function(n,dv){return this.editor.getParam(n,dv)},getLang:function(n,dv){return this.editor.getLang(n,dv)},getWindowArg:function(n,dv){var v=this.editor.windowManager.params[n];return"undefined"!=typeof v?v:dv},close:function(){return this.editor.windowManager.close()}};tinyMCEPopup.editor=tinyMCE,jQuery(document).ready(function($){var el,win=window.parent,s=tinyMCEPopup.editor.settings;if(s.element&&(el=win.document.getElementById(s.element),el&&(tinyMCEPopup.editor.windowManager.params.value=el.value)),s.callback){var fn=win[s.callback];"function"==typeof fn&&(tinyMCEPopup.editor.windowManager.params.callback=fn)}el||s.callback||s.element||$("#cancel, #insert").hide()});
|
||||
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
@@ -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
@@ -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
1
components/com_jce/editor/tiny_mce/plugins/charmap/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
17
components/com_jce/editor/tiny_mce/plugins/cleanup/cleanup.xml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_CLEANUP_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_CLEANUP_DESC</description>
|
||||
<icon>cleanup</icon>
|
||||
<files></files>
|
||||
<languages></languages>
|
||||
<help></help>
|
||||
</extension>
|
||||
|
||||
112
components/com_jce/editor/tiny_mce/plugins/cleanup/config.php
vendored
Normal file
@@ -0,0 +1,112 @@
|
||||
<?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 WFCleanupPluginConfig
|
||||
{
|
||||
private static $invalid_elements = array('iframe', 'object', 'param', 'embed', 'audio', 'video', 'source', 'script', 'style', 'applet', 'body', 'bgsound', 'base', 'basefont', 'frame', 'frameset', 'head', 'html', 'id', 'ilayer', 'layer', 'link', 'meta', 'name', 'title', 'xml');
|
||||
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
$wf = WFApplication::getInstance();
|
||||
|
||||
// Encoding
|
||||
$settings['entity_encoding'] = $wf->getParam('editor.entity_encoding');
|
||||
|
||||
// keep
|
||||
$nbsp = (bool) $wf->getParam('editor.keep_nbsp', 1);
|
||||
|
||||
$settings['keep_nbsp'] = $nbsp;
|
||||
|
||||
// use named encoding with limited entities set if raw/utf-8 and keep_nbsp === true
|
||||
if ($settings['entity_encoding'] === 'raw' && $nbsp) {
|
||||
$settings['entity_encoding'] = 'named';
|
||||
$settings['entities'] = '160,nbsp,173,shy';
|
||||
}
|
||||
|
||||
// set "plugin mode"
|
||||
$settings['cleanup_pluginmode'] = $wf->getParam('editor.cleanup_pluginmode', 0, 0);
|
||||
|
||||
// get verify html (default is true)
|
||||
$settings['verify_html'] = $wf->getParam('editor.verify_html', 1, 1, 'boolean', false);
|
||||
|
||||
$settings['pad_empty_tags'] = $wf->getParam('editor.pad_empty_tags', 1, 1, 'boolean');
|
||||
|
||||
// set schema
|
||||
$settings['schema'] = $wf->getParam('editor.schema', 'mixed', 'mixed');
|
||||
|
||||
if ($settings['schema'] === 'html5') {
|
||||
$settings['schema'] = 'html5-strict';
|
||||
}
|
||||
|
||||
$settings['validate_styles'] = $wf->getParam('editor.validate_styles', 1, 1, 'boolean', false);
|
||||
|
||||
// Get Extended elements
|
||||
$settings['extended_valid_elements'] = $wf->getParam('editor.extended_elements', '', '');
|
||||
|
||||
// Configuration list of invalid elements as array
|
||||
$settings['invalid_elements'] = explode(',', preg_replace('#\s+#', '', $wf->getParam('editor.invalid_elements', '', '')));
|
||||
|
||||
// Add elements to invalid list (removed by plugin)
|
||||
$settings['invalid_elements'] = array_unique(array_merge($settings['invalid_elements'], self::$invalid_elements));
|
||||
|
||||
// process extended_valid_elements
|
||||
if ($settings['extended_valid_elements']) {
|
||||
$extended_elements = explode(',', $settings['extended_valid_elements']);
|
||||
|
||||
$elements = array();
|
||||
|
||||
// add wildcard attributes if none specified
|
||||
for ($i = 0; $i < count($extended_elements); ++$i) {
|
||||
$value = $extended_elements[$i];
|
||||
|
||||
// clean up value
|
||||
$value = preg_replace('#[^a-zA-Z0-9_\-\[\]\*@\|\/!=\:\?+\#]#', '', $value);
|
||||
|
||||
$pos = strpos($value, '[');
|
||||
|
||||
if ($pos === false) {
|
||||
$elements[] = $value;
|
||||
$value .= '[*]';
|
||||
} else {
|
||||
$elements[] = substr($value, 0, $pos);
|
||||
}
|
||||
|
||||
$extended_elements[$i] = $value;
|
||||
}
|
||||
|
||||
// restore settings to array
|
||||
$settings['extended_valid_elements'] = implode(',', $extended_elements);
|
||||
|
||||
if (!empty($elements)) {
|
||||
$settings['invalid_elements'] = array_diff($settings['invalid_elements'], $elements);
|
||||
}
|
||||
}
|
||||
|
||||
// clean invalid_elements
|
||||
$settings['invalid_elements'] = array_filter($settings['invalid_elements'], function ($value) {
|
||||
return $value !== '';
|
||||
});
|
||||
|
||||
// remove it if it is the same as the default
|
||||
if ($settings['invalid_elements'] === self::$invalid_elements) {
|
||||
$settings['invalid_elements'] = array();
|
||||
}
|
||||
|
||||
$settings['invalid_attributes'] = $wf->getParam('editor.invalid_attributes', 'dynsrc,lowsrc', 'dynsrc,lowsrc', 'string', true);
|
||||
$settings['invalid_attribute_values'] = $wf->getParam('editor.invalid_attribute_values', '', '', 'string', true);
|
||||
|
||||
$allow_script = $wf->getParam('editor.allow_javascript', 0, 0, 'boolean');
|
||||
|
||||
// if scripts are allowed, then allow event attributes
|
||||
if ($allow_script || (bool) $wf->getParam('editor.allow_event_attributes')) {
|
||||
$settings['allow_event_attributes'] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
components/com_jce/editor/tiny_mce/plugins/cleanup/editor_plugin.js
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/cleanup/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
101
components/com_jce/editor/tiny_mce/plugins/clipboard/clipboard.xml
vendored
Normal 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>
|
||||
66
components/com_jce/editor/tiny_mce/plugins/clipboard/config.php
vendored
Normal 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);
|
||||
}
|
||||
}
|
||||
3
components/com_jce/editor/tiny_mce/plugins/clipboard/editor_plugin.js
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/clipboard/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
321
components/com_jce/editor/tiny_mce/plugins/clipboard/tests/clipboard.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/clipboard/tests/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
43
components/com_jce/editor/tiny_mce/plugins/code/config.php
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
<?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 WFCodePluginConfig
|
||||
{
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
$wf = WFApplication::getInstance();
|
||||
|
||||
if (!in_array('code', $settings['plugins'])) {
|
||||
$settings['plugins'][] = 'code';
|
||||
}
|
||||
|
||||
$settings['code_allow_php'] = $wf->getParam('editor.allow_php', 0, 0, 'boolean');
|
||||
$settings['code_allow_script'] = $wf->getParam('editor.allow_javascript', 0, 0, 'boolean');
|
||||
$settings['code_allow_style'] = $wf->getParam('editor.allow_css', 0, 0, 'boolean');
|
||||
|
||||
$settings['code_protect_shortcode'] = $wf->getParam('editor.protect_shortcode', 0, 0, 'boolean');
|
||||
$settings['code_allow_custom_xml'] = $wf->getParam('editor.allow_custom_xml', 0, 0, 'boolean');
|
||||
|
||||
$settings['code_use_blocks'] = $wf->getParam('editor.code_blocks', 1, 1, 'boolean');
|
||||
|
||||
$remove = array();
|
||||
|
||||
// remove as Invalid Elements
|
||||
if ($settings['code_allow_script']) {
|
||||
$remove[] = 'script';
|
||||
}
|
||||
|
||||
if ($settings['code_allow_style']) {
|
||||
$remove[] = 'style';
|
||||
}
|
||||
|
||||
$settings['invalid_elements'] = array_diff($settings['invalid_elements'], $remove);
|
||||
}
|
||||
}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/code/css/content.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.mceContentBody span[data-mce-code=shortcode]:not([data-mce-type=placeholder]),.mceContentBody span[data-mce-code=php]:not([data-mce-type=placeholder]){font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:14px;color:#444;background-color:#fafafa;background-color:var(--mce-placeholder);margin:2px 0;padding:2px;border:1px dashed #787679;border-color:var(--mce-guidelines);line-height:1;vertical-align:middle;max-width:inherit}.mceContentBody span[data-mce-code=php]:not([data-mce-type=placeholder]){background-color:#E2E4EF;color:#4F5B93}.mceContentBody pre[data-mce-code]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;cursor:inherit;vertical-align:baseline;border-collapse:separate;text-align:left;box-sizing:border-box;float:none;outline:0;position:relative;-webkit-border-radius:0;-moz-border-radius:0;text-transform:inherit;font-style:normal;letter-spacing:normal;box-shadow:inherit;transition:inherit;border:1px solid #787679;border-color:var(--mce-guidelines);width:100%;min-height:2rem;border-radius:0;background-color:#fff;overflow-y:auto;padding:8px;white-space:pre-wrap;word-wrap:normal;word-break:normal;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:14px;color:#444}.mceContentBody.mceVisualBlocks pre[data-mce-code]{border:1px solid #787679;border-color:var(--mce-guidelines);padding:8px}.mceContentBody pre[data-mce-code]:before{display:block;position:inherit;content:attr(data-mce-code);background-color:#fafafa;background-color:var(--mce-placeholder);padding:4px;line-height:1;width:4rem;text-align:center;left:-8px;top:-8px;font-family:-apple-systrem,BlinkMacSystremFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;font-size:10px;font-weight:700;color:#787679;color:var(--mce-guidelines)}.mceContentBody pre[data-mce-code=php]:before,.mceContentBody.mceVisualBlocks pre[data-mce-code=php]:before{color:#4F5B93;background-color:#E2E4EF}.mceContentBody img[data-mce-code]{display:block;position:inherit;background-color:#fafafa;background-color:var(--mce-placeholder);width:2.5rem;height:1.5rem;margin:1px 0;cursor:pointer;background-position:center;background-repeat:no-repeat;box-sizing:border-box}.mceContentBody img[data-mce-code][data-mce-selected]{border:1px solid #39f;border-color:var(--mce-control-selection)}.mceContentBody img[data-mce-code=php]{display:inline-block;background-image:url(../img/php.svg);background-color:#E2E4EF}.mceContentBody img[data-mce-code=style]{background-image:url(../img/style.svg)}.mceContentBody img[data-mce-code=script]{background-image:url(../img/script.svg)}.mceContentBody img[data-mce-code=xml]{background-image:url(../img/xml.svg)}.mceContentBody span[data-mce-code=shortcode],.mceContentBody span[data-mce-code=php]{display:inline-block}.mceContentBody span[data-mce-code=shortcode]:not([data-mce-type=placeholder]):before,.mceContentBody span[data-mce-code=php]:not([data-mce-type=placeholder]):before{content:"";display:none}.mceContentBody.mceVisualBlocks pre[data-mce-code]:before{content:attr(data-mce-code);width:6em;padding:4px;font-size:10px;line-height:1;text-align:center;margin:0}.mceContentBody.mceVisualBlocks pre[data-mce-label]:before{content:attr(data-mce-label)}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/code/css/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/code/editor_plugin.js
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/code/img/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
8
components/com_jce/editor/tiny_mce/plugins/code/img/php.svg
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 32" width="128" height="32">
|
||||
<title>PHP</title>
|
||||
<g>
|
||||
<text x="55" y="20" style='font-family:-apple-systrem,BlinkMacSystremFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;font-weight:bold;font-size:10px;fill:#4F5B93;stroke:none;'>php</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 467 B |
8
components/com_jce/editor/tiny_mce/plugins/code/img/script.svg
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 32" width="128" height="32">
|
||||
<title>Script</title>
|
||||
<g>
|
||||
<text x="50" y="20" style='font-family:-apple-systrem,BlinkMacSystremFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;font-weight:bold;font-size:10px;fill:#787679;stroke:none;'>script</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 473 B |
8
components/com_jce/editor/tiny_mce/plugins/code/img/style.svg
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 32" width="128" height="32">
|
||||
<title>Style</title>
|
||||
<g>
|
||||
<text x="53" y="20" style='font-family:-apple-systrem,BlinkMacSystremFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;font-weight:bold;font-size:10px;fill:#787679;stroke:none;'>style</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 471 B |
8
components/com_jce/editor/tiny_mce/plugins/code/img/xml.svg
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 32" width="128" height="32">
|
||||
<title>XML</title>
|
||||
<g>
|
||||
<text x="55" y="20" style='font-family:-apple-systrem,BlinkMacSystremFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;font-weight:bold;font-size:10px;fill:#787679;stroke:none;'>xml</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 467 B |
1
components/com_jce/editor/tiny_mce/plugins/code/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
31
components/com_jce/editor/tiny_mce/plugins/colorpicker/colorpicker.php
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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 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');
|
||||
}
|
||||
}
|
||||
27
components/com_jce/editor/tiny_mce/plugins/colorpicker/config.php
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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 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;
|
||||
}
|
||||
}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/colorpicker/css/colorpicker.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
#colorpicker_picker div.farbtastic{margin:10px auto}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/colorpicker/css/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/colorpicker/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){tinymce.create("tinymce.plugins.ColorPicker",{init:function(ed,url){this.editor=ed,ed.addCommand("mceColorPicker",function(ui,v){ed.windowManager.open({url:ed.getParam("site_url")+"index.php?option=com_jce&task=plugin.display&plugin=colorpicker",width:365,height:320,close_previous:!1},{input_color:v.color,func:v.func})})}}),tinymce.PluginManager.add("colorpicker",tinymce.plugins.ColorPicker)}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/colorpicker/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/colorpicker/js/colorpicker.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function($){var ColorPicker={settings:{},init:function(){var ed=tinyMCEPopup.editor,color=tinyMCEPopup.getWindowArg("input_color")||"#FFFFFF",doc=ed.getDoc(),stylesheets=[];doc.styleSheets.length&&$.each(doc.styleSheets,function(i,s){s.href&&s.href.indexOf("tiny_mce")==-1&&stylesheets.push(s)}),$("#tmp_color").val(color).colorpicker($.extend(this.settings,{dialog:!0,stylesheets:stylesheets,custom_colors:ed.getParam("colorpicker_custom_colors"),labels:{name:ed.getLang("colorpicker.name","Name")}})).on("colorpicker:insert",function(){return ColorPicker.insert()}).on("colorpicker:close",function(){return tinyMCEPopup.close()}),$("button#insert").button({icons:{primary:"uk-icon-check"}}),$("#jce").css("display","block")},insert:function(){var color=$("#colorpicker_color").val(),f=tinyMCEPopup.getWindowArg("func");color&&(color="#"+color),tinyMCEPopup.restoreSelection(),f&&f(color),tinyMCEPopup.close()}};tinyMCEPopup.onInit.add(ColorPicker.init,ColorPicker)}(jQuery);
|
||||
1
components/com_jce/editor/tiny_mce/plugins/colorpicker/js/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
40
components/com_jce/editor/tiny_mce/plugins/colorpicker/tmpl/default.php
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
<?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 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 JText::_('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 JText::_('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 JText::_('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 JText::_('WF_COLORPICKER_TEMPLATE'); ?></button></li>
|
||||
</ul>
|
||||
<div id="tab-content" class="uk-switcher">
|
||||
<div id="colorpicker_picker" title="<?php echo JText::_('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 JText::_('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 JText::_('WF_COLORPICKER_NAMED'); ?>" data-type="named" role="tabpanel" aria-hidden="true"><!-- Gets filled with named colors--></div>
|
||||
<div id="colorpicker_template" title="<?php echo JText::_('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 JText::_('WF_LABEL_APPLY'); ?></span></button>
|
||||
</div>
|
||||
1
components/com_jce/editor/tiny_mce/plugins/colorpicker/tmpl/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
15
components/com_jce/editor/tiny_mce/plugins/contextmenu/contextmenu.xml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_CONTEXTMENU_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_CONTEXTMENU_DESC</description>
|
||||
<icon></icon>
|
||||
<help></help>
|
||||
<languages></languages>
|
||||
</extension>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/contextmenu/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){var Event=tinymce.dom.Event,DOM=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(ed){function hide(ed,e){return realCtrlKey=0,e&&2==e.button?void(realCtrlKey=e.ctrlKey):void(self._menu&&(self._menu.removeAll(),self._menu.destroy(),Event.remove(ed.getDoc(),"click",hideMenu),self._menu=null))}var showMenu,contextmenuNeverUseNative,realCtrlKey,hideMenu,self=this;self.editor=ed,contextmenuNeverUseNative=ed.settings.contextmenu_never_use_native;var isNativeOverrideKeyEvent=function(e){return e.ctrlKey&&!contextmenuNeverUseNative},isMacWebKit=function(){return tinymce.isMac&&tinymce.isWebKit},isImage=function(elm){return elm&&"IMG"===elm.nodeName},isLink=function(elm){return elm&&"A"===elm.nodeName};self.onContextMenu=new tinymce.util.Dispatcher(this),hideMenu=function(e){hide(ed,e)},showMenu=ed.onContextMenu.add(function(ed,e){(0!==realCtrlKey?realCtrlKey:e.ctrlKey)&&!contextmenuNeverUseNative||(Event.cancel(e),isMacWebKit()&&2===e.button&&!isNativeOverrideKeyEvent(e)&&ed.selection.isCollapsed()&&(isImage(e.target)||ed.selection.placeCaretAt(e.clientX,e.clientY)),(isImage(e.target)||isLink(e.target))&&ed.selection.select(e.target),self._getMenu(ed,e).showMenu(e.clientX||e.pageX,e.clientY||e.pageY),Event.add(ed.getDoc(),"click",hideMenu),ed.nodeChanged())}),ed.onRemove.add(function(){self._menu&&self._menu.removeAll()}),ed.onMouseDown.add(hide),ed.onKeyDown.add(hide),ed.onKeyDown.add(function(ed,e){!e.shiftKey||e.ctrlKey||e.altKey||121!==e.keyCode||(Event.cancel(e),showMenu(ed,e))})},_getMenu:function(ed,e){var am,p,self=this,m=self._menu,se=ed.selection,col=se.isCollapsed(),el=e.target;return el&&"BODY"!==el.nodeName||(el=se.getNode()||ed.getBody()),m&&(m.removeAll(),m.destroy()),p=DOM.getPos(ed.getContentAreaContainer()),m=ed.controlManager.createDropMenu("contextmenu",{offset_x:p.x+ed.getParam("contextmenu_offset_x",0),offset_y:p.y+ed.getParam("contextmenu_offset_y",0),constrain:!0,keyboard_focus:!0}),self._menu=m,am=m.addMenu({title:"contextmenu.align"}),am.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"}),am.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"}),am.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"}),am.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"}),self.onContextMenu.dispatch(self,m,el,col),m}}),tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/contextmenu/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
48
components/com_jce/editor/tiny_mce/plugins/core/config.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?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 WFCorePluginConfig
|
||||
{
|
||||
private static function extractContent($content)
|
||||
{
|
||||
$content = htmlspecialchars_decode($content);
|
||||
|
||||
// Remove body etc.
|
||||
if (preg_match('/<body[^>]*>([\s\S]+?)<\/body>/', $content, $matches)) {
|
||||
$content = trim($matches[1]);
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
$wf = WFApplication::getInstance();
|
||||
|
||||
$startup_content_url = $wf->getParam('editor.startup_content_url', '');
|
||||
$startup_content_html = $wf->getParam('editor.startup_content_html', '');
|
||||
|
||||
if ($startup_content_url) {
|
||||
if (preg_match("#\.(htm|html|txt|md)$#", $startup_content_url) && strpos('://', $startup_content_url) === false) {
|
||||
$startup_content_url = trim($startup_content_url, '/');
|
||||
|
||||
$file = JPATH_SITE . '/' . $startup_content_url;
|
||||
|
||||
if (is_file($file)) {
|
||||
$startup_content_html = @file_get_contents($file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($startup_content_html) {
|
||||
$settings['startup_content_html'] = htmlspecialchars(self::extractContent($startup_content_html));
|
||||
}
|
||||
}
|
||||
}
|
||||
2
components/com_jce/editor/tiny_mce/plugins/core/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){function validateContent(ed,content){var args={no_events:!0,format:"raw"},settings={};if(extend(settings,ed.settings),args.content=content,ed.settings.validate){args.format="html",args.load=!0,ed.onBeforeGetContent.dispatch(ed,args),settings.verify_html=!1,settings.forced_root_block=!1,settings.validate=!0;var parser=new DomParser(settings,ed.schema),serializer=new HtmlSerializer(settings,ed.schema);args.content=serializer.serialize(parser.parse(args.content),args),args.get=!0,ed.onPostProcess.dispatch(ed,args),content=args.content}return content}var Entities=tinymce.html.Entities,each=tinymce.each,extend=tinymce.extend,DomParser=tinymce.html.DomParser,HtmlSerializer=tinymce.html.Serializer,Dispatcher=tinymce.util.Dispatcher;tinymce.PluginManager.add("core",function(ed,url){function isEmpty(){return"TEXTAREA"===elm.nodeName?""==elm.value:""==elm.innerHTML}function insertContent(value){return value=Entities.decode(value),value&&("TEXTAREA"===elm.nodeName?elm.value=value:elm.innerHTML=value),!0}function isFakeRoot(node){return node&&1==node.nodeType&&node.hasAttribute("data-mce-root")}function fakeRootBlock(){ed.settings.editable_root="rootblock",ed.onPreInit.add(function(){function isEmptyRoot(node){return/^( | |\s|\u00a0|)$/.test(node.innerHTML)}var selection=ed.selection,dom=ed.dom;ed.schema.addValidElements("#mce:root[id|data-mce-root]"),ed.schema.children["mce:root"]=ed.schema.children.body,ed.schema.children.body["mce:root"]={},ed.serializer.addAttributeFilter("data-mce-root",function(nodes){for(var i=nodes.length;i--;)nodes[i].unwrap()}),ed.serializer.addAttributeFilter("data-mce-bogus",function(nodes){for(var i=nodes.length;i--;)nodes[i].remove()}),ed.onBeforeSetContent.add(function(editor,o){o.content||(o.content='<br data-mce-bogus="1">'),o.content='<mce:root id="'+ed.settings.editable_root+'" data-mce-root="1">'+o.content+"</mce:root>"}),ed.onSetContent.add(function(ed,o){var rng,root=dom.get(ed.settings.editable_root);root&&(isEmptyRoot(root)&&(root.innerHTML='<br data-mce-bogus="1">'),rng=dom.createRng(),rng.setStart(root,0),rng.setEnd(root,0),selection.setRng(rng))}),ed.onSaveContent.add(function(ed,o){" "===o.content&&(o.content="")}),ed.undoManager.onBeforeAdd.add(function(um,level){var container=ed.dom.create("div",{},level.content);isFakeRoot(container.firstChild)&&(level.content=container.firstChild.innerHTML)})})}var store;ed.onUpdateMedia=new Dispatcher,ed.onWfEditorSave=new Dispatcher;var contentLoaded=!1,elm=ed.getElement(),startup_content_html=ed.settings.startup_content_html||"";ed.onBeforeRenderUI.add(function(){if(startup_content_html&&elm&&!contentLoaded&&isEmpty())return contentLoaded=!0,insertContent(startup_content_html)}),ed.onKeyUp.add(function(ed,e){var quoted="“{$selection}”";"de"==ed.settings.language&&(quoted="„{$selection}“"),("'"===e.key||'"'==e.key)&&e.shiftKey&&e.ctrlKey&&(ed.undoManager.add(),ed.execCommand("mceReplaceContent",!1,quoted))}),ed.onExecCommand.add(function(ed,cmd,ui,val,args){"Undo"!=cmd&&"Redo"!=cmd&&"mceReApply"!=cmd&&"mceRepaint"!=cmd&&(store={cmd:cmd,ui:ui,value:val,args:args})}),ed.addShortcut("ctrl+alt+z","","mceReApply"),ed.addCommand("mceReApply",function(){if(store&&store.cmd)return ed.execCommand(store.cmd,store.ui,store.value,store.args)}),ed.onPreInit.add(function(){ed.onUpdateMedia.add(function(ed,o){function updateSrcSet(elm,o){var srcset=elm.getAttribute("srcset");if(srcset){for(var sets=srcset.split(","),i=0;i<sets.length;i++){var values=sets[i].trim().split(" ");o.before==values[0]&&(values[0]=o.after),sets[i]=values.join(" ")}elm.setAttribute("srcset",sets.join(","))}}o.before&&o.after&&(each(ed.dom.select("img,poster"),function(elm){var src=elm.getAttribute("src"),val=src.substring(0,src.indexOf("?"));if(val==o.before){var after=o.after,stamp="?"+(new Date).getTime();src.indexOf("?")!==-1&&after.indexOf("?")===-1&&(after+=stamp),ed.dom.setAttribs(elm,{src:after,"data-mce-src":o.after})}elm.getAttribute("srcset")&&updateSrcSet(elm,o)}),each(ed.dom.select("a[href]"),function(elm){var href=ed.dom.getAttrib(elm,"href");href==o.before&&ed.dom.setAttribs(elm,{href:o.after,"data-mce-href":o.after})}))}),ed.onWfEditorSave.add(function(ed,o){o.content=validateContent(ed,o.content)})}),0==ed.settings.forced_root_block&&0!=ed.settings.editable_root&&fakeRootBlock(),tinymce.util.isFakeRoot=isFakeRoot})}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/core/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
17
components/com_jce/editor/tiny_mce/plugins/directionality/directionality.xml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_DIRECTIONALITY_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_DIRECTIONALITY_DESC</description>
|
||||
<icon>ltr,rtl</icon>
|
||||
<help>
|
||||
<topic key="directionality.about" title="WF_DIRECTIONALITY_HELP_ABOUT" />
|
||||
</help>
|
||||
<languages></languages>
|
||||
</extension>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/directionality/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){tinymce.create("tinymce.plugins.Directionality",{init:function(ed,url){function setDir(dir){var curDir,dom=ed.dom,blocks=ed.selection.getSelectedBlocks();blocks.length&&(curDir=dom.getAttrib(blocks[0],"dir"),tinymce.each(blocks,function(block){dom.getParent(block.parentNode,"*[dir='"+dir+"']",dom.getRoot())||(curDir!=dir?dom.setAttrib(block,"dir",dir):dom.setAttrib(block,"dir",null))}),ed.nodeChanged())}ed.addCommand("mceDirectionLTR",function(){setDir("ltr")}),ed.addCommand("mceDirectionRTL",function(){setDir("rtl")}),ed.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"}),ed.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"}),ed.onNodeChange.add(this.nodeChange,this)},nodeChange:function(ed,cm,n){var dir,dom=ed.dom;return(n=dom.getParent(n,dom.isBlock))?(dir=dom.getAttrib(n,"dir"),cm.setActive("ltr","ltr"==dir),cm.setDisabled("ltr",0),cm.setActive("rtl","rtl"==dir),void cm.setDisabled("rtl",0)):(cm.setDisabled("ltr",1),void cm.setDisabled("rtl",1))}}),tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/directionality/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/effects/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){var each=tinymce.each;tinymce.PluginManager.add("effects",function(ed,url){function cleanEventAttribute(val){return val?val.replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/,"$1").replace(/^\s*|\s*$/g,""):""}function bindMouseoverEvent(ed){each(ed.dom.select("img[data-mouseover]"),function(elm){var src=elm.getAttribute("src"),mouseover=elm.getAttribute("data-mouseover");return!src||!mouseover||(elm.onmouseover=function(){elm.setAttribute("src",elm.getAttribute("data-mouseover"))},void(elm.onmouseout=function(){elm.setAttribute("src",elm.getAttribute("data-mouseout")||src)}))})}ed.onPreInit.add(function(){ed.onBeforeSetContent.add(function(ed,o){if(o.content.indexOf("onmouseover=")!==-1){var div=ed.dom.create("div",{},o.content);each(ed.dom.select("img[onmouseover]",div),function(node){var mouseover=node.getAttribute("onmouseover"),mouseout=node.getAttribute("onmouseout");if(!mouseover||0!==mouseover.indexOf("this.src"))return!0;if(mouseover=cleanEventAttribute(mouseover),node.removeAttribute("onmouseover"),!mouseover)return!0;if(node.setAttribute("data-mouseover",mouseover),mouseout&&0===mouseout.indexOf("this.src")){if(mouseout=cleanEventAttribute(mouseout),node.removeAttribute("onmouseout"),!mouseout)return;node.setAttribute("data-mouseout",mouseout)}}),o.content=div.innerHTML}}),ed.parser.addAttributeFilter("onmouseover",function(nodes){for(var i=nodes.length;i--;){var node=nodes[i];if("img"===node.name){var mouseover=node.attr("onmouseover"),mouseout=node.attr("onmouseout");mouseover&&0===mouseover.indexOf("this.src")&&(mouseover=cleanEventAttribute(mouseover),node.attr("data-mouseover",mouseover),node.attr("onmouseover",null),mouseout&&0===mouseout.indexOf("this.src")&&(mouseout=cleanEventAttribute(mouseout),node.attr("data-mouseout",mouseout),node.attr("onmouseout",null)))}}}),ed.serializer.addAttributeFilter("data-mouseover",function(nodes){for(var i=nodes.length;i--;){var node=nodes[i];if("img"===node.name){var mouseover=node.attr("data-mouseover"),mouseout=node.attr("data-mouseout");mouseover=cleanEventAttribute(mouseover),node.attr("data-mouseover",null),node.attr("data-mouseout",null),mouseover&&(node.attr("onmouseover","this.src='"+mouseover+"';"),mouseout=cleanEventAttribute(mouseout),mouseout&&node.attr("onmouseout","this.src='"+mouseout+"';"))}}}),ed.selection.onSetContent.add(function(){bindMouseoverEvent(ed)}),ed.onSetContent.add(function(){bindMouseoverEvent(ed)}),ed.onUpdateMedia.add(function(ed,o){o.before&&o.after&&each(ed.dom.select("img[data-mouseover]"),function(elm){var mouseover=elm.getAttribute("data-mouseover"),mouseout=elm.getAttribute("data-mouseout");return!mouseover||(mouseover==o.before&&elm.setAttribute("data-mouseover",o.after),void(mouseout==o.before&&elm.setAttribute("data-mouseout",o.after)))})})})})}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/effects/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
21
components/com_jce/editor/tiny_mce/plugins/emotions/config.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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 WFEmotionsPluginConfig
|
||||
{
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
// Get JContentEditor instance
|
||||
$wf = WFApplication::getInstance();
|
||||
|
||||
$settings['emotions_smilies'] = $wf->getParam('emotions.smilies');
|
||||
$settings['emotions_url'] = $wf->getParam('emotions.url');
|
||||
}
|
||||
}
|
||||
2
components/com_jce/editor/tiny_mce/plugins/emotions/editor_plugin.js
vendored
Normal file
33
components/com_jce/editor/tiny_mce/plugins/emotions/emotions.xml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_EMOTIONS_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>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_EMOTIONS_DESC</description>
|
||||
<icon>emotions</icon>
|
||||
<files>
|
||||
<file>editor_plugin.js</file>
|
||||
<file>emotions.php</file>
|
||||
<folder>classes</folder>
|
||||
<folder>css</folder>
|
||||
<folder>img</folder>
|
||||
<folder>js</folder>
|
||||
<folder>tmpl</folder>
|
||||
</files>
|
||||
<fields name="emotions">
|
||||
<fieldset name="config">
|
||||
<field name="url" type="text" placeholder="components/com_jce/editor/tiny_mce/plugins/emotions/img" default="" size="100" label="WF_EMOTIONS_PARAM_URL" description="WF_EMOTIONS_PARAM_URL_DESC" />
|
||||
<field name="smilies" type="text" placeholder="eg: smiley-confused.gif,smiley-cool.gif" default="" size="100" label="WF_EMOTIONS_PARAM_SMILIES" description="WF_EMOTIONS_PARAM_SMILIES_DESC" />
|
||||
</fieldset>
|
||||
</fields>
|
||||
<languages>
|
||||
<language tag="en-GB">en-GB.WF_emotions.ini</language>
|
||||
</languages>
|
||||
<help></help>
|
||||
</extension>
|
||||
|
||||
1
components/com_jce/editor/tiny_mce/plugins/emotions/img/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
BIN
components/com_jce/editor/tiny_mce/plugins/emotions/img/smiley-confused.gif
vendored
Normal file
|
After Width: | Height: | Size: 299 B |
BIN
components/com_jce/editor/tiny_mce/plugins/emotions/img/smiley-cool.gif
vendored
Normal file
|
After Width: | Height: | Size: 303 B |
BIN
components/com_jce/editor/tiny_mce/plugins/emotions/img/smiley-cry.gif
vendored
Normal file
|
After Width: | Height: | Size: 300 B |
BIN
components/com_jce/editor/tiny_mce/plugins/emotions/img/smiley-eek.gif
vendored
Normal file
|
After Width: | Height: | Size: 300 B |
BIN
components/com_jce/editor/tiny_mce/plugins/emotions/img/smiley-embarassed.gif
vendored
Normal file
|
After Width: | Height: | Size: 298 B |
BIN
components/com_jce/editor/tiny_mce/plugins/emotions/img/smiley-evil.gif
vendored
Normal file
|
After Width: | Height: | Size: 308 B |
BIN
components/com_jce/editor/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif
vendored
Normal file
|
After Width: | Height: | Size: 344 B |
BIN
components/com_jce/editor/tiny_mce/plugins/emotions/img/smiley-frown.gif
vendored
Normal file
|
After Width: | Height: | Size: 340 B |