first commit
This commit is contained in:
2
components/com_jce/editor/tiny_mce/plugins/textcase/editor_plugin.js
vendored
Normal file
2
components/com_jce/editor/tiny_mce/plugins/textcase/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.TextCase",{init:function(ed,url){var self=this;this.url=url,this.editor=ed,ed.addCommand("mceUpperCase",function(){self._upperCase()}),ed.addCommand("mceLowerCase",function(){self._lowerCase()}),ed.addCommand("mceTitleCase",function(){self._titleCase()}),ed.addCommand("mceSentenceCase",function(){self._sentenceCase()}),ed.onNodeChange.add(function(ed,cm,n,co){cm.setDisabled("textcase",co)})},createControl:function(n,cm){var self=this,ed=self.editor;if("textcase"===n){var c=cm.createSplitButton("textcase",{title:"textcase.uppercase",icon:"uppercase",onclick:function(){ed.execCommand("mceUpperCase")}});return c.onRenderMenu.add(function(c,m){m.add({title:"textcase.uppercase",icon:"uppercase",onclick:function(){ed.execCommand("mceUpperCase")}}),m.add({title:"textcase.lowercase",icon:"lowercase",onclick:function(){ed.execCommand("mceLowerCase")}}),m.add({title:"textcase.sentencecase",icon:"sentencecase",onclick:function(){ed.execCommand("mceSentenceCase")}}),m.add({title:"textcase.titlecase",icon:"titlecase",onclick:function(){ed.execCommand("mceTitleCase")}})}),c}return null},_sentenceCase:function(){var ed=this.editor,s=ed.selection,text=s.getContent();text=text.toLowerCase().replace(/([\u0000-\u1FFF])/,function(a,b){return b.toUpperCase()}).replace(/(\.\s?)([\u0000-\u1FFF])/gi,function(a,b,c){return b+c.toUpperCase()}),s.setContent(text)},_titleCase:function(){var ed=this.editor,s=ed.selection,text=s.getContent();text=text.toLowerCase(),text=text.replace(/(?:^|\s)[\u0000-\u1FFF]/g,function(match){return match.toUpperCase()}),s.setContent(text)},_lowerCase:function(){var ed=this.editor,s=ed.selection,text=s.getContent();s.setContent(text.toLowerCase())},_upperCase:function(){var ed=this.editor,s=ed.selection,text=s.getContent();s.setContent(text.toUpperCase())}}),tinymce.PluginManager.add("textcase",tinymce.plugins.TextCase)}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/textcase/img/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/textcase/img/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
BIN
components/com_jce/editor/tiny_mce/plugins/textcase/img/lowercase.png
vendored
Normal file
BIN
components/com_jce/editor/tiny_mce/plugins/textcase/img/lowercase.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 502 B |
BIN
components/com_jce/editor/tiny_mce/plugins/textcase/img/sentencecase.png
vendored
Normal file
BIN
components/com_jce/editor/tiny_mce/plugins/textcase/img/sentencecase.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 378 B |
BIN
components/com_jce/editor/tiny_mce/plugins/textcase/img/uppercase.png
vendored
Normal file
BIN
components/com_jce/editor/tiny_mce/plugins/textcase/img/uppercase.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 507 B |
1
components/com_jce/editor/tiny_mce/plugins/textcase/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/textcase/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
17
components/com_jce/editor/tiny_mce/plugins/textcase/textcase.xml
vendored
Normal file
17
components/com_jce/editor/tiny_mce/plugins/textcase/textcase.xml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_TEXTCASE_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_TEXTCASE_DESC</description>
|
||||
<icon>textcase</icon>
|
||||
<help>
|
||||
<topic key="textcase.about" title="WF_TEXTCASE_HELP_ABOUT" />
|
||||
</help>
|
||||
<languages></languages>
|
||||
</extension>
|
||||
Reference in New Issue
Block a user